In the process of software development, we often deal with the keyboard. The following is what I checked by MSDN hopes to help you. Use the following value anywhere in the code to instead of the keyboard:
Value Description 0x1 mouse left button 0x2 mouse button 0x3 CANCEL key 0x4 mouse button 0x8 backspace key 0x9 Tab key 0x20 Shift key 0x11 CTRL key 0x12 MENU button 0x13 PAUSE button 0x14 Caps lock "0x1b ESC key 0x20 spacebar key 0x21 PAGE UP key 0x22 PAGE DOWN key 0x23 END key 0x24 HOME key 0x25 LEFT ARROW key 0x26 UP ARROW key 0x27 RIGHT ARROW key 0x28 DOWN ARROW key 0x29 SELECT key 0x2A PRINT SCREEN key 0x2B EXECUTE key 0x2C SNAPSHOT key 0x2D INSERT key 0x2E DELETE key 0x2F Help button 0x90 Num lock keys A to Z key with a - z letter ASCII code: Value Description 65 A key 66 B key 67 C button 68 D key 69 E key 70 F key 71 g key 72 h button 73 i key 74 J button 75 k key 76 L button 77 M key 78 n key 79 o key 80 p keys 81 q key 82 r bond 83 S key 84 t key 85 U key 86 V key 87 w key 88 X key 89 Y key 90 z key 0 to 9 key and number 0 - 9 ASCII code the same: Value Description 48 0 key 49 1 button 50 2 key 51 3 key 52 4 key 53 5 key 54 6 key 55 7 key 56 8 key 57 9 key The following constants represent numbers Keypad on the keyboard: value 0x60 0 key 0x61 1 button 0x62 2 key 0x63 3 key 0x64 4 key 0x65 5 key 0x66 6 key 0x67 7 key 0x68 8 key 0x69 9 key 0x6a multiplication sign (*) key 0x6b plus Sign ( ) Key 0x6c ENTER button 0x6d minus sign (-) button 0x6e decimal point (.) Button 0x6f Division Sign (/) key Listing constant representative function key: Value Description 0x70 F1 button 0x71 F2 key 0x72 F3 key 0x73 F4 key 0x74 F5 key 0x75 f6 Key 0x76 F7 button 0x77 F8 Key 0x78 F9 key 0x79 F10 key 0x7a F11 key 0x7b F12 key 0x7c F13 key 0x7D F14 key 0x7e F15 key 0x7f F16 key