public void shiftandcaps(Keys Key)
{
if (!MyProject.Computer.Keyboard.ShiftKeyDown & !MyProject.Computer.Keyboard.CapsLock)
{
if (Key == Keys.A)
{
this.TextBox1.Text = this.TextBox1.Text + "a";
}
else if (Key == Keys.B)
{
this.TextBox1.Text = this.TextBox1.Text + "b";
}
else if (Key == Keys.C)
{
this.TextBox1.Text = this.TextBox1.Text + "c";
}
else if (Key == Keys.D)
{
this.TextBox1.Text = this.TextBox1.Text + "d";
}
else if (Key == Keys.E)
{
this.TextBox1.Text = this.TextBox1.Text + "e";
}
else if (Key == Keys.F)
{
this.TextBox1.Text = this.TextBox1.Text + "f";
}
else if (Key == Keys.G)
{
this.TextBox1.Text = this.TextBox1.Text + "g";
}
else if (Key == Keys.H)
{
this.TextBox1.Text = this.TextBox1.Text + "h";
}
else if (Key == Keys.I)
{
this.TextBox1.Text = this.TextBox1.Text + "i";
}
else if (Key == Keys.J)
{
this.TextBox1.Text = this.TextBox1.Text + "j";
}
else if (Key == Keys.K)
{
this.TextBox1.Text = this.TextBox1.Text + "k";
}
else if (Key == Keys.L)
{
this.TextBox1.Text = this.TextBox1.Text + "l";
}
else if (Key == Keys.M)
{
this.TextBox1.Text = this.TextBox1.Text + "m";
}
else if (Key == Keys.N)
{
this.TextBox1.Text = this.TextBox1.Text + "n";
}
else if (Key == Keys.O)
{
this.TextBox1.Text = this.TextBox1.Text + "o";
}
else if (Key == Keys.P)
{
this.TextBox1.Text = this.TextBox1.Text + "p";
}
else if (Key == Keys.Q)
{
this.TextBox1.Text = this.TextBox1.Text + "q";
}
else if (Key == Keys.R)
{
this.TextBox1.Text = this.TextBox1.Text + "r";
}
else if (Key == Keys.S)
{
this.TextBox1.Text = this.TextBox1.Text + "s";
}
else if (Key == Keys.T)
{
this.TextBox1.Text = this.TextBox1.Text + "t";
}
else if (Key == Keys.U)
{
this.TextBox1.Text = this.TextBox1.Text + "u";
}
else if (Key == Keys.V)
{
this.TextBox1.Text = this.TextBox1.Text + "v";
}
else if (Key == Keys.W)
{
this.TextBox1.Text = this.TextBox1.Text + "w";
}
else if (Key == Keys.X)
{
this.TextBox1.Text = this.TextBox1.Text + "x";
}
else if (Key == Keys.Y)
{
this.TextBox1.Text = this.TextBox1.Text + "y";
}
else if (Key == Keys.Z)
{
this.TextBox1.Text = this.TextBox1.Text + "z";
}
else if (Key == Keys.D0)
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
else if (Key == Keys.D1)
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
else if (Key == Keys.D2)
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
else if (Key == Keys.D3)
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
else if (Key == Keys.D4)
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
else if (Key == Keys.D5)
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
else if (Key == Keys.D6)
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
else if (Key == Keys.D7)
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
else if (Key == Keys.D8)
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
else if (Key == Keys.D9)
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
else if (Key == Keys.NumPad0)
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
else if (Key == Keys.NumPad1)
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
else if (Key == Keys.NumPad2)
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
else if (Key == Keys.NumPad3)
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
else if (Key == Keys.NumPad4)
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
else if (Key == Keys.NumPad5)
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
else if (Key == Keys.NumPad6)
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
else if (Key == Keys.NumPad7)
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
else if (Key == Keys.NumPad8)
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
else if (Key == Keys.NumPad9)
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
else if (Key == Keys.Oemcomma)
{
this.TextBox1.Text = this.TextBox1.Text + ",";
}
else if (Key == Keys.OemMinus)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.OemQuotes)
{
this.TextBox1.Text = this.TextBox1.Text + "'";
}
else if (Key == Keys.OemOpenBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "[";
}
else if (Key == Keys.OemCloseBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "]";
}
else if (Key == Keys.OemQuestion)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.OemPipe)
{
this.TextBox1.Text = this.TextBox1.Text + @"\";
}
else if (Key == Keys.OemSemicolon)
{
this.TextBox1.Text = this.TextBox1.Text + ";";
}
else if (Key == Keys.OemPeriod)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Oemtilde)
{
this.TextBox1.Text = this.TextBox1.Text + "`";
}
else if (Key == Keys.Space)
{
this.TextBox1.Text = this.TextBox1.Text + " ";
}
else if (Key == Keys.Return)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n";
}
else if (Key == Keys.F1)
{
this.TextBox1.Text = this.TextBox1.Text + "[F1]";
}
else if (Key == Keys.F2)
{
this.TextBox1.Text = this.TextBox1.Text + "[F2]";
}
else if (Key == Keys.F3)
{
this.TextBox1.Text = this.TextBox1.Text + "[F3]";
}
else if (Key == Keys.F4)
{
this.TextBox1.Text = this.TextBox1.Text + "[F4]";
}
else if (Key == Keys.F5)
{
this.TextBox1.Text = this.TextBox1.Text + "[F5]";
}
else if (Key == Keys.F6)
{
this.TextBox1.Text = this.TextBox1.Text + "[F6]";
}
else if (Key == Keys.F7)
{
this.TextBox1.Text = this.TextBox1.Text + "[F7]";
}
else if (Key == Keys.F8)
{
this.TextBox1.Text = this.TextBox1.Text + "[F8]";
}
else if (Key == Keys.F9)
{
this.TextBox1.Text = this.TextBox1.Text + "[F9]";
}
else if (Key == Keys.F10)
{
this.TextBox1.Text = this.TextBox1.Text + "[F10]";
}
else if (Key == Keys.F11)
{
this.TextBox1.Text = this.TextBox1.Text + "[F11]";
}
else if (Key == Keys.F12)
{
this.TextBox1.Text = this.TextBox1.Text + "[F12]";
}
else if (Key == Keys.Delete)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Back)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Down)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Up)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Left)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Right)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Tab)
{
this.TextBox1.Text = this.TextBox1.Text + "[TAB]";
}
else if (Key == Keys.End)
{
this.TextBox1.Text = this.TextBox1.Text + "[END]";
}
else if (Key == Keys.Escape)
{
this.TextBox1.Text = this.TextBox1.Text + "[ESC]";
}
else if (Key == Keys.Divide)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.Decimal)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Subtract)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.Add)
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
else if (Key == Keys.Multiply)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
}
else if (!MyProject.Computer.Keyboard.ShiftKeyDown & MyProject.Computer.Keyboard.CapsLock)
{
if (Key == Keys.A)
{
this.TextBox1.Text = this.TextBox1.Text + "A";
}
else if (Key == Keys.B)
{
this.TextBox1.Text = this.TextBox1.Text + "B";
}
else if (Key == Keys.C)
{
this.TextBox1.Text = this.TextBox1.Text + "C";
}
else if (Key == Keys.D)
{
this.TextBox1.Text = this.TextBox1.Text + "D";
}
else if (Key == Keys.E)
{
this.TextBox1.Text = this.TextBox1.Text + "E";
}
else if (Key == Keys.F)
{
this.TextBox1.Text = this.TextBox1.Text + "F";
}
else if (Key == Keys.G)
{
this.TextBox1.Text = this.TextBox1.Text + "G";
}
else if (Key == Keys.H)
{
this.TextBox1.Text = this.TextBox1.Text + "H";
}
else if (Key == Keys.I)
{
this.TextBox1.Text = this.TextBox1.Text + "I";
}
else if (Key == Keys.J)
{
this.TextBox1.Text = this.TextBox1.Text + "J";
}
else if (Key == Keys.K)
{
this.TextBox1.Text = this.TextBox1.Text + "K";
}
else if (Key == Keys.L)
{
this.TextBox1.Text = this.TextBox1.Text + "L";
}
else if (Key == Keys.M)
{
this.TextBox1.Text = this.TextBox1.Text + "M";
}
else if (Key == Keys.N)
{
this.TextBox1.Text = this.TextBox1.Text + "N";
}
else if (Key == Keys.O)
{
this.TextBox1.Text = this.TextBox1.Text + "O";
}
else if (Key == Keys.P)
{
this.TextBox1.Text = this.TextBox1.Text + "P";
}
else if (Key == Keys.Q)
{
this.TextBox1.Text = this.TextBox1.Text + "Q";
}
else if (Key == Keys.R)
{
this.TextBox1.Text = this.TextBox1.Text + "R";
}
else if (Key == Keys.S)
{
this.TextBox1.Text = this.TextBox1.Text + "S";
}
else if (Key == Keys.T)
{
this.TextBox1.Text = this.TextBox1.Text + "T";
}
else if (Key == Keys.U)
{
this.TextBox1.Text = this.TextBox1.Text + "U";
}
else if (Key == Keys.V)
{
this.TextBox1.Text = this.TextBox1.Text + "V";
}
else if (Key == Keys.W)
{
this.TextBox1.Text = this.TextBox1.Text + "W";
}
else if (Key == Keys.X)
{
this.TextBox1.Text = this.TextBox1.Text + "X";
}
else if (Key == Keys.Y)
{
this.TextBox1.Text = this.TextBox1.Text + "Y";
}
else if (Key == Keys.Z)
{
this.TextBox1.Text = this.TextBox1.Text + "Z";
}
else if (Key == Keys.D0)
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
else if (Key == Keys.D1)
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
else if (Key == Keys.D2)
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
else if (Key == Keys.D3)
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
else if (Key == Keys.D4)
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
else if (Key == Keys.D5)
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
else if (Key == Keys.D6)
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
else if (Key == Keys.D7)
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
else if (Key == Keys.D8)
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
else if (Key == Keys.D9)
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
else if (Key == Keys.NumPad0)
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
else if (Key == Keys.NumPad1)
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
else if (Key == Keys.NumPad2)
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
else if (Key == Keys.NumPad3)
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
else if (Key == Keys.NumPad4)
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
else if (Key == Keys.NumPad5)
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
else if (Key == Keys.NumPad6)
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
else if (Key == Keys.NumPad7)
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
else if (Key == Keys.NumPad8)
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
else if (Key == Keys.NumPad9)
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
else if (Key == Keys.Oemcomma)
{
this.TextBox1.Text = this.TextBox1.Text + ",";
}
else if (Key == Keys.OemMinus)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.OemQuotes)
{
this.TextBox1.Text = this.TextBox1.Text + "'";
}
else if (Key == Keys.OemOpenBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "[";
}
else if (Key == Keys.OemCloseBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "]";
}
else if (Key == Keys.OemQuestion)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.OemPipe)
{
this.TextBox1.Text = this.TextBox1.Text + @"\";
}
else if (Key == Keys.OemSemicolon)
{
this.TextBox1.Text = this.TextBox1.Text + ";";
}
else if (Key == Keys.OemPeriod)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Oemtilde)
{
this.TextBox1.Text = this.TextBox1.Text + "`";
}
else if (Key == Keys.Space)
{
this.TextBox1.Text = this.TextBox1.Text + " ";
}
else if (Key == Keys.Return)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n";
}
else if (Key == Keys.F1)
{
this.TextBox1.Text = this.TextBox1.Text + "[F1]";
}
else if (Key == Keys.F2)
{
this.TextBox1.Text = this.TextBox1.Text + "[F2]";
}
else if (Key == Keys.F3)
{
this.TextBox1.Text = this.TextBox1.Text + "[F3]";
}
else if (Key == Keys.F4)
{
this.TextBox1.Text = this.TextBox1.Text + "[F4]";
}
else if (Key == Keys.F5)
{
this.TextBox1.Text = this.TextBox1.Text + "[F5]";
}
else if (Key == Keys.F6)
{
this.TextBox1.Text = this.TextBox1.Text + "[F6]";
}
else if (Key == Keys.F7)
{
this.TextBox1.Text = this.TextBox1.Text + "[F7]";
}
else if (Key == Keys.F8)
{
this.TextBox1.Text = this.TextBox1.Text + "[F8]";
}
else if (Key == Keys.F9)
{
this.TextBox1.Text = this.TextBox1.Text + "[F9]";
}
else if (Key == Keys.F10)
{
this.TextBox1.Text = this.TextBox1.Text + "[F10]";
}
else if (Key == Keys.F11)
{
this.TextBox1.Text = this.TextBox1.Text + "[F11]";
}
else if (Key == Keys.F12)
{
this.TextBox1.Text = this.TextBox1.Text + "[F12]";
}
else if (Key == Keys.Delete)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Back)
{
this.TextBox1.Text = this.TextBox1.Text + "[Back]";
}
else if (Key == Keys.Down)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Up)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Left)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Right)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Tab)
{
this.TextBox1.Text = this.TextBox1.Text + "[TAB]";
}
else if (Key == Keys.End)
{
this.TextBox1.Text = this.TextBox1.Text + "[END]";
}
else if (Key == Keys.Escape)
{
this.TextBox1.Text = this.TextBox1.Text + "[ESC]";
}
else if (Key == Keys.Divide)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.Decimal)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Subtract)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.Add)
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
else if (Key == Keys.Multiply)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
}
else if (MyProject.Computer.Keyboard.ShiftKeyDown & MyProject.Computer.Keyboard.CapsLock)
{
if (Key == Keys.D1)
{
this.TextBox1.Text = this.TextBox1.Text + "!";
}
else if (Key == Keys.D2)
{
this.TextBox1.Text = this.TextBox1.Text + "@";
}
else if (Key == Keys.D3)
{
this.TextBox1.Text = this.TextBox1.Text + "#";
}
else if (Key == Keys.D4)
{
this.TextBox1.Text = this.TextBox1.Text + "$";
}
else if (Key == Keys.D5)
{
this.TextBox1.Text = this.TextBox1.Text + "%";
}
else if (Key == Keys.D6)
{
this.TextBox1.Text = this.TextBox1.Text + "^";
}
else if (Key == Keys.D7)
{
this.TextBox1.Text = this.TextBox1.Text + "&";
}
else if (Key == Keys.D8)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
else if (Key == Keys.D9)
{
this.TextBox1.Text = this.TextBox1.Text + "(";
}
else if (Key == Keys.D0)
{
this.TextBox1.Text = this.TextBox1.Text + ")";
}
else if (Key == Keys.A)
{
this.TextBox1.Text = this.TextBox1.Text + "A";
}
else if (Key == Keys.B)
{
this.TextBox1.Text = this.TextBox1.Text + "B";
}
else if (Key == Keys.C)
{
this.TextBox1.Text = this.TextBox1.Text + "C";
}
else if (Key == Keys.D)
{
this.TextBox1.Text = this.TextBox1.Text + "D";
}
else if (Key == Keys.E)
{
this.TextBox1.Text = this.TextBox1.Text + "E";
}
else if (Key == Keys.F)
{
this.TextBox1.Text = this.TextBox1.Text + "F";
}
else if (Key == Keys.G)
{
this.TextBox1.Text = this.TextBox1.Text + "G";
}
else if (Key == Keys.H)
{
this.TextBox1.Text = this.TextBox1.Text + "H";
}
else if (Key == Keys.I)
{
this.TextBox1.Text = this.TextBox1.Text + "I";
}
else if (Key == Keys.J)
{
this.TextBox1.Text = this.TextBox1.Text + "J";
}
else if (Key == Keys.K)
{
this.TextBox1.Text = this.TextBox1.Text + "K";
}
else if (Key == Keys.L)
{
this.TextBox1.Text = this.TextBox1.Text + "L";
}
else if (Key == Keys.M)
{
this.TextBox1.Text = this.TextBox1.Text + "M";
}
else if (Key == Keys.N)
{
this.TextBox1.Text = this.TextBox1.Text + "N";
}
else if (Key == Keys.O)
{
this.TextBox1.Text = this.TextBox1.Text + "O";
}
else if (Key == Keys.P)
{
this.TextBox1.Text = this.TextBox1.Text + "P";
}
else if (Key == Keys.Q)
{
this.TextBox1.Text = this.TextBox1.Text + "Q";
}
else if (Key == Keys.R)
{
this.TextBox1.Text = this.TextBox1.Text + "R";
}
else if (Key == Keys.S)
{
this.TextBox1.Text = this.TextBox1.Text + "S";
}
else if (Key == Keys.T)
{
this.TextBox1.Text = this.TextBox1.Text + "T";
}
else if (Key == Keys.U)
{
this.TextBox1.Text = this.TextBox1.Text + "U";
}
else if (Key == Keys.V)
{
this.TextBox1.Text = this.TextBox1.Text + "V";
}
else if (Key == Keys.W)
{
this.TextBox1.Text = this.TextBox1.Text + "W";
}
else if (Key == Keys.X)
{
this.TextBox1.Text = this.TextBox1.Text + "X";
}
else if (Key == Keys.Y)
{
this.TextBox1.Text = this.TextBox1.Text + "Y";
}
else if (Key == Keys.Z)
{
this.TextBox1.Text = this.TextBox1.Text + "Z";
}
else if (Key == Keys.Oemcomma)
{
this.TextBox1.Text = this.TextBox1.Text + "<";
}
else if (Key == Keys.OemMinus)
{
this.TextBox1.Text = this.TextBox1.Text + "_";
}
else if (Key == Keys.OemOpenBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "{";
}
else if (Key == Keys.OemCloseBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "}";
}
else if (Key == Keys.OemQuestion)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.OemPipe)
{
this.TextBox1.Text = this.TextBox1.Text + "|";
}
else if (Key == Keys.OemSemicolon)
{
this.TextBox1.Text = this.TextBox1.Text + ":";
}
else if (Key == Keys.OemPeriod)
{
this.TextBox1.Text = this.TextBox1.Text + ">";
}
else if (Key == Keys.Oemtilde)
{
this.TextBox1.Text = this.TextBox1.Text + "~";
}
else if (Key == Keys.Space)
{
this.TextBox1.Text = this.TextBox1.Text + " ";
}
else if (Key == Keys.Return)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n";
}
else if (Key == Keys.F1)
{
this.TextBox1.Text = this.TextBox1.Text + "[F1]";
}
else if (Key == Keys.F2)
{
this.TextBox1.Text = this.TextBox1.Text + "[F2]";
}
else if (Key == Keys.F3)
{
this.TextBox1.Text = this.TextBox1.Text + "[F3]";
}
else if (Key == Keys.F4)
{
this.TextBox1.Text = this.TextBox1.Text + "[F4]";
}
else if (Key == Keys.F5)
{
this.TextBox1.Text = this.TextBox1.Text + "[F5]";
}
else if (Key == Keys.F6)
{
this.TextBox1.Text = this.TextBox1.Text + "[F6]";
}
else if (Key == Keys.F7)
{
this.TextBox1.Text = this.TextBox1.Text + "[F7]";
}
else if (Key == Keys.F8)
{
this.TextBox1.Text = this.TextBox1.Text + "[F8]";
}
else if (Key == Keys.F9)
{
this.TextBox1.Text = this.TextBox1.Text + "[F9]";
}
else if (Key == Keys.F10)
{
this.TextBox1.Text = this.TextBox1.Text + "[F10]";
}
else if (Key == Keys.F11)
{
this.TextBox1.Text = this.TextBox1.Text + "[F11]";
}
else if (Key == Keys.F12)
{
this.TextBox1.Text = this.TextBox1.Text + "[F12]";
}
else if (Key == Keys.Delete)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Back)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Down)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Up)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Left)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Right)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Tab)
{
this.TextBox1.Text = this.TextBox1.Text + "[TAB]";
}
else if (Key == Keys.End)
{
this.TextBox1.Text = this.TextBox1.Text + "[END]";
}
else if (Key == Keys.Escape)
{
this.TextBox1.Text = this.TextBox1.Text + "[ESC]";
}
else if (Key == Keys.Divide)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.Decimal)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Subtract)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.Add)
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
else if (Key == Keys.Multiply)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
}
else if (!MyProject.Computer.Keyboard.ShiftKeyDown & MyProject.Computer.Keyboard.CapsLock)
{
if (Key == Keys.D1)
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
else if (Key == Keys.D2)
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
else if (Key == Keys.D3)
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
else if (Key == Keys.D4)
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
else if (Key == Keys.D5)
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
else if (Key == Keys.D6)
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
else if (Key == Keys.D7)
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
else if (Key == Keys.D8)
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
else if (Key == Keys.D9)
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
else if (Key == Keys.D0)
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
else if (Key == Keys.A)
{
this.TextBox1.Text = this.TextBox1.Text + "a";
}
else if (Key == Keys.B)
{
this.TextBox1.Text = this.TextBox1.Text + "b";
}
else if (Key == Keys.C)
{
this.TextBox1.Text = this.TextBox1.Text + "c";
}
else if (Key == Keys.D)
{
this.TextBox1.Text = this.TextBox1.Text + "d";
}
else if (Key == Keys.E)
{
this.TextBox1.Text = this.TextBox1.Text + "e";
}
else if (Key == Keys.F)
{
this.TextBox1.Text = this.TextBox1.Text + "f";
}
else if (Key == Keys.G)
{
this.TextBox1.Text = this.TextBox1.Text + "g";
}
else if (Key == Keys.H)
{
this.TextBox1.Text = this.TextBox1.Text + "h";
}
else if (Key == Keys.I)
{
this.TextBox1.Text = this.TextBox1.Text + "i";
}
else if (Key == Keys.J)
{
this.TextBox1.Text = this.TextBox1.Text + "j";
}
else if (Key == Keys.K)
{
this.TextBox1.Text = this.TextBox1.Text + "k";
}
else if (Key == Keys.L)
{
this.TextBox1.Text = this.TextBox1.Text + "l";
}
else if (Key == Keys.M)
{
this.TextBox1.Text = this.TextBox1.Text + "m";
}
else if (Key == Keys.N)
{
this.TextBox1.Text = this.TextBox1.Text + "n";
}
else if (Key == Keys.O)
{
this.TextBox1.Text = this.TextBox1.Text + "o";
}
else if (Key == Keys.P)
{
this.TextBox1.Text = this.TextBox1.Text + "p";
}
else if (Key == Keys.Q)
{
this.TextBox1.Text = this.TextBox1.Text + "q";
}
else if (Key == Keys.R)
{
this.TextBox1.Text = this.TextBox1.Text + "r";
}
else if (Key == Keys.S)
{
this.TextBox1.Text = this.TextBox1.Text + "s";
}
else if (Key == Keys.T)
{
this.TextBox1.Text = this.TextBox1.Text + "t";
}
else if (Key == Keys.U)
{
this.TextBox1.Text = this.TextBox1.Text + "u";
}
else if (Key == Keys.V)
{
this.TextBox1.Text = this.TextBox1.Text + "v";
}
else if (Key == Keys.W)
{
this.TextBox1.Text = this.TextBox1.Text + "w";
}
else if (Key == Keys.X)
{
this.TextBox1.Text = this.TextBox1.Text + "x";
}
else if (Key == Keys.Y)
{
this.TextBox1.Text = this.TextBox1.Text + "y";
}
else if (Key == Keys.Z)
{
this.TextBox1.Text = this.TextBox1.Text + "z";
}
else if (Key == Keys.Oemcomma)
{
this.TextBox1.Text = this.TextBox1.Text + ",";
}
else if (Key == Keys.OemMinus)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.OemQuotes)
{
this.TextBox1.Text = this.TextBox1.Text + "'";
}
else if (Key == Keys.OemOpenBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "[";
}
else if (Key == Keys.OemCloseBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "]";
}
else if (Key == Keys.OemQuestion)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.OemPipe)
{
this.TextBox1.Text = this.TextBox1.Text + @"\";
}
else if (Key == Keys.OemSemicolon)
{
this.TextBox1.Text = this.TextBox1.Text + ";";
}
else if (Key == Keys.OemPeriod)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Oemtilde)
{
this.TextBox1.Text = this.TextBox1.Text + "`";
}
else if (Key == Keys.Space)
{
this.TextBox1.Text = this.TextBox1.Text + " ";
}
else if (Key == Keys.Return)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n";
}
else if (Key == Keys.F1)
{
this.TextBox1.Text = this.TextBox1.Text + "[F1]";
}
else if (Key == Keys.F2)
{
this.TextBox1.Text = this.TextBox1.Text + "[F2]";
}
else if (Key == Keys.F3)
{
this.TextBox1.Text = this.TextBox1.Text + "[F3]";
}
else if (Key == Keys.F4)
{
this.TextBox1.Text = this.TextBox1.Text + "[F4]";
}
else if (Key == Keys.F5)
{
this.TextBox1.Text = this.TextBox1.Text + "[F5]";
}
else if (Key == Keys.F6)
{
this.TextBox1.Text = this.TextBox1.Text + "[F6]";
}
else if (Key == Keys.F7)
{
this.TextBox1.Text = this.TextBox1.Text + "[F7]";
}
else if (Key == Keys.F8)
{
this.TextBox1.Text = this.TextBox1.Text + "[F8]";
}
else if (Key == Keys.F9)
{
this.TextBox1.Text = this.TextBox1.Text + "[F9]";
}
else if (Key == Keys.F10)
{
this.TextBox1.Text = this.TextBox1.Text + "[F10]";
}
else if (Key == Keys.F11)
{
this.TextBox1.Text = this.TextBox1.Text + "[F11]";
}
else if (Key == Keys.F12)
{
this.TextBox1.Text = this.TextBox1.Text + "[F12]";
}
else if (Key == Keys.Delete)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Back)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Down)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Up)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Left)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Right)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Tab)
{
this.TextBox1.Text = this.TextBox1.Text + "[TAB]";
}
else if (Key == Keys.End)
{
this.TextBox1.Text = this.TextBox1.Text + "[END]";
}
else if (Key == Keys.Escape)
{
this.TextBox1.Text = this.TextBox1.Text + "[ESC]";
}
else if (Key == Keys.Divide)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.Decimal)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Subtract)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.Add)
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
else if (Key == Keys.Multiply)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
}
else if (MyProject.Computer.Keyboard.ShiftKeyDown & !MyProject.Computer.Keyboard.CapsLock)
{
if (Key == Keys.D1)
{
this.TextBox1.Text = this.TextBox1.Text + "!";
}
else if (Key == Keys.D2)
{
this.TextBox1.Text = this.TextBox1.Text + "@";
}
else if (Key == Keys.D3)
{
this.TextBox1.Text = this.TextBox1.Text + "#";
}
else if (Key == Keys.D4)
{
this.TextBox1.Text = this.TextBox1.Text + "$";
}
else if (Key == Keys.D5)
{
this.TextBox1.Text = this.TextBox1.Text + "%";
}
else if (Key == Keys.D6)
{
this.TextBox1.Text = this.TextBox1.Text + "^";
}
else if (Key == Keys.D7)
{
this.TextBox1.Text = this.TextBox1.Text + "&";
}
else if (Key == Keys.D8)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
else if (Key == Keys.D9)
{
this.TextBox1.Text = this.TextBox1.Text + "(";
}
else if (Key == Keys.D0)
{
this.TextBox1.Text = this.TextBox1.Text + ")";
}
else if (Key == Keys.A)
{
this.TextBox1.Text = this.TextBox1.Text + "A";
}
else if (Key == Keys.B)
{
this.TextBox1.Text = this.TextBox1.Text + "B";
}
else if (Key == Keys.C)
{
this.TextBox1.Text = this.TextBox1.Text + "C";
}
else if (Key == Keys.D)
{
this.TextBox1.Text = this.TextBox1.Text + "D";
}
else if (Key == Keys.E)
{
this.TextBox1.Text = this.TextBox1.Text + "E";
}
else if (Key == Keys.F)
{
this.TextBox1.Text = this.TextBox1.Text + "F";
}
else if (Key == Keys.G)
{
this.TextBox1.Text = this.TextBox1.Text + "G";
}
else if (Key == Keys.H)
{
this.TextBox1.Text = this.TextBox1.Text + "H";
}
else if (Key == Keys.I)
{
this.TextBox1.Text = this.TextBox1.Text + "I";
}
else if (Key == Keys.J)
{
this.TextBox1.Text = this.TextBox1.Text + "J";
}
else if (Key == Keys.K)
{
this.TextBox1.Text = this.TextBox1.Text + "K";
}
else if (Key == Keys.L)
{
this.TextBox1.Text = this.TextBox1.Text + "L";
}
else if (Key == Keys.M)
{
this.TextBox1.Text = this.TextBox1.Text + "M";
}
else if (Key == Keys.N)
{
this.TextBox1.Text = this.TextBox1.Text + "N";
}
else if (Key == Keys.O)
{
this.TextBox1.Text = this.TextBox1.Text + "O";
}
else if (Key == Keys.P)
{
this.TextBox1.Text = this.TextBox1.Text + "P";
}
else if (Key == Keys.Q)
{
this.TextBox1.Text = this.TextBox1.Text + "Q";
}
else if (Key == Keys.R)
{
this.TextBox1.Text = this.TextBox1.Text + "R";
}
else if (Key == Keys.S)
{
this.TextBox1.Text = this.TextBox1.Text + "S";
}
else if (Key == Keys.T)
{
this.TextBox1.Text = this.TextBox1.Text + "T";
}
else if (Key == Keys.U)
{
this.TextBox1.Text = this.TextBox1.Text + "U";
}
else if (Key == Keys.V)
{
this.TextBox1.Text = this.TextBox1.Text + "V";
}
else if (Key == Keys.W)
{
this.TextBox1.Text = this.TextBox1.Text + "W";
}
else if (Key == Keys.X)
{
this.TextBox1.Text = this.TextBox1.Text + "X";
}
else if (Key == Keys.Y)
{
this.TextBox1.Text = this.TextBox1.Text + "Y";
}
else if (Key == Keys.Z)
{
this.TextBox1.Text = this.TextBox1.Text + "Z";
}
else if (Key == Keys.Oemcomma)
{
this.TextBox1.Text = this.TextBox1.Text + "<";
}
else if (Key == Keys.OemMinus)
{
this.TextBox1.Text = this.TextBox1.Text + "_";
}
else if (Key == Keys.OemOpenBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "{";
}
else if (Key == Keys.OemCloseBrackets)
{
this.TextBox1.Text = this.TextBox1.Text + "}";
}
else if (Key == Keys.OemQuestion)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.OemPipe)
{
this.TextBox1.Text = this.TextBox1.Text + "|";
}
else if (Key == Keys.OemSemicolon)
{
this.TextBox1.Text = this.TextBox1.Text + ":";
}
else if (Key == Keys.OemPeriod)
{
this.TextBox1.Text = this.TextBox1.Text + ">";
}
else if (Key == Keys.Oemtilde)
{
this.TextBox1.Text = this.TextBox1.Text + "~";
}
else if (Key == Keys.Space)
{
this.TextBox1.Text = this.TextBox1.Text + " ";
}
else if (Key == Keys.Return)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n";
}
else if (Key == Keys.F1)
{
this.TextBox1.Text = this.TextBox1.Text + "[F1]";
}
else if (Key == Keys.F2)
{
this.TextBox1.Text = this.TextBox1.Text + "[F2]";
}
else if (Key == Keys.F3)
{
this.TextBox1.Text = this.TextBox1.Text + "[F3]";
}
else if (Key == Keys.F4)
{
this.TextBox1.Text = this.TextBox1.Text + "[F4]";
}
else if (Key == Keys.F5)
{
this.TextBox1.Text = this.TextBox1.Text + "[F5]";
}
else if (Key == Keys.F6)
{
this.TextBox1.Text = this.TextBox1.Text + "[F6]";
}
else if (Key == Keys.F7)
{
this.TextBox1.Text = this.TextBox1.Text + "[F7]";
}
else if (Key == Keys.F8)
{
this.TextBox1.Text = this.TextBox1.Text + "[F8]";
}
else if (Key == Keys.F9)
{
this.TextBox1.Text = this.TextBox1.Text + "[F9]";
}
else if (Key == Keys.F10)
{
this.TextBox1.Text = this.TextBox1.Text + "[F10]";
}
else if (Key == Keys.F11)
{
this.TextBox1.Text = this.TextBox1.Text + "[F11]";
}
else if (Key == Keys.F12)
{
this.TextBox1.Text = this.TextBox1.Text + "[F12]";
}
else if (Key == Keys.Delete)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Back)
{
this.TextBox1.Text = this.TextBox1.Text + "[DEL]";
}
else if (Key == Keys.Down)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Up)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Left)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Right)
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
else if (Key == Keys.Tab)
{
this.TextBox1.Text = this.TextBox1.Text + "[TAB]";
}
else if (Key == Keys.End)
{
this.TextBox1.Text = this.TextBox1.Text + "[END]";
}
else if (Key == Keys.Escape)
{
this.TextBox1.Text = this.TextBox1.Text + "[ESC]";
}
else if (Key == Keys.Divide)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
else if (Key == Keys.Decimal)
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
else if (Key == Keys.Subtract)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
else if (Key == Keys.Add)
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
else if (Key == Keys.Multiply)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
}
}