Description/r
0x1 left mouse button/r
0x2 right mouse button/r
0x3 CANCEL key/r
0x4 middle mouse button/r
0x8 BACKSPACE key/r
0x9 TAB key/r
0xC CLEAR key/r
0xD ENTER key/r
0x10 SHIFT key/r
0x11 CTRL key/r
0x12 MENU key/r
0x13 PAUSE key/r
0x14 CAPS LOCK key/r
0x1B ESC key/r
0x20 SPACEBAR key/r
0x21 PAGE UP key/r
0x22 PAGE DOWN key/r
0x23 END key/r
0x24 HOME key/r
0x25 LEFT ARROW key/r
0x26 UP ARROW key/r
0x27 RIGHT ARROW key/r
0x28 DOWN ARROW key/r
0x29 SELECT key/r
0x2A PRINT SCREEN key/r
0x2B EXECUTE key/r
0x2C SNAPSHOT key/r
0x2D INSERT key/r
0x2E DELETE key/r
0x2F HELP key/r
0x90 NUM LOCK key/r
The A to Z keys are the same as the ASCII codes for the A – Z letters:
value description/r
65 A key/r
66 B key/r
67 C key/r
68 D key/r
69 E key/r
70 F key/r
71 G key/r
72 H key/r
73 I key/r
74 J key/r
75 K keys/r
76 L key/r
77 M key/r
78 N key/r
79 O key/r
80 P key/r
81 Q key/r
82 R key/r
83 S key/r
84 T key/r
85 U key/r
86 V key/r
87 W key/r
88 X key/r
89 Y key/r
90 Z key/r
The keys 0 to 9 have the same ASCII codes as the numbers 0 – 9:
value description/r
48 0 key/r
49 1 key/r
50 2 keys/r
51 3 keys/r
52 4 keys/r
53 5 keys/r
54 6 keys/r
55 7 keys/r
56 8 keys/r
57 9 keys/r
The following constants represent keys on the numeric keypad:
value description/r
0x60 0 key/r
0x61 1 key/r
0x62 2 keys/r
0x63 3 keys/r
0x64 4 keys/r
0x65 5 keys/r
0x66 6 keys/r
0x67 7 key/r
0x68 8 keys/r
0x69 9 key/r
0x6A MULTIPLICATION SIGN (*) key/r
0x6B PLUS SIGN (+) key/r
0x6C ENTER key/r
0x6D MINUS SIGN (–) key/r
0x6E DECIMAL POINT (.) key/r
0x6F DIVISION SIGN (/) key/r
The following constants represent function keys:
value description/r
0x70 F1 key/r
0x71 F2 key/r
0x72 F3 key/r
0x73 F4 key/r
0x74 F5 key/r
0x75 F6 key/r
0x76 F7 key/r
0x77 F8 key/r
0x78 F9 key/r
0x79 F10 key/r
0x7A F11 key/r
0x7B F12 key/r
0x7C F13 key/r
0x7D F14 key/r
0x7E F15 key/r
0x7F F16 key/r