ESC key Vk_escape (27)
Enter: Vk_return (13)
TAB Key: Vk_tab (9)
Caps Lock key: Vk_capital (20)
SHIFT Key: Vk_shift ($ $)
CTRL key: Vk_control (17)
ALT key: Vk_menu (18)
Space bar: Vk_space ($20/32)
BACKSPACE: Vk_back (8)
Left logo key: Vk_lwin (91)
Right logo key: Vk_lwin (92)
Right mouse shortcut key: Vk_apps (93)
------------------------------------
INSERT Key: Vk_insert (45)
HOME Key: Vk_home (36)
Page Up:vk_prior (33)
Pagedown:vk_next (34)
END Key: Vk_end (35)
DELETE Key: Vk_delete (46)
Arrow keys (←): Vk_left (37)
Arrow keys (↑): Vk_up (38)
direction keys (→): vk_right (39)
Arrow keys (↓): Vk_down (40)
-----------------------------------
F1 key: vk_f1 (112)
F2 key: Vk_f2 (113)
F3 key: Vk_f3 (114)
F4 key: Vk_f4 (115)
F5 key: Vk_f5 (116)
F6 key: Vk_f6 (117)
F7 key: Vk_f7 (118)
F8 key: Vk_f8 (119)
F9 Key: Vk_f9 (120)
F10 Key: VK_F10 (121)
F11 Key: vk_f11 (122)
F12 key: Vk_f12 (123)
---------------------------------
NUM LOCK key: Vk_numlock (144)
Keypad 0:VK_NUMPAD0 (96)
Keypad 1:VK_NUMPAD0 (97)
Keypad 2:VK_NUMPAD0 (98)
Keypad 3:VK_NUMPAD0 (99)
Keypad 4:vk_numpad0 (100)
Keypad 5:VK_NUMPAD0 (101)
Keypad 6:VK_NUMPAD0 (102)
Keypad 7:VK_NUMPAD0 (103)
Keypad 8:VK_NUMPAD0 (104)
Keypad 9:VK_NUMPAD0 (105)
Keypad.: Vk_decimal (110)
Numpad *: vk_multiply (106)
Keypad +: vk_multiply (107)
Numpad-: vk_subtract (109)
Numpad/: Vk_divide (111)
Pause Break key: Vk_pause (19)
Scroll Lock key: Vk_scroll (145)
-------------------------------------
0x1 left mouse button
0x2 right mouse button
0x3 CANCEL Key
0x4 Middle mouse button
0x8 BACKSPACE Key
0x9 TAB Key
0xC CLEAR Key
0xD ENTER Key
0x10 SHIFT Key
0x11 CTRL Key
0x12 MENU Key
0x13 PAUSE Key
0x14 CAPS LOCK Key
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 Key
0x90 Num LOCK Key
-----------------------------------------
The A to Z key is the same as the ASCII code for the A–z letter:
Value Description
A Key
The B key
The C key
The D key
E Key
+ F Key
G Key
The H key
I Key
The J key
K Key
L Key
+ M Key
The N key
The O key
P Key
Bayi Q Key
+/-R key
The S key
T Key
U-Key
The V-key
The W key
X Key
Y Key
Z Key
------------------------------------------
The 0 to 9 keys are the same as the ASCII code of the digital 0–9:
Value Description
48 0 Keys
49 1 Keys
50 2 Keys
51 3 Keys
52 4 Keys
53 5 Keys
54 6 Keys
55 7 Keys
56 8 Keys
57 9 Keys
----------------------------------------
The following constants represent keys on the numeric keypad:
Value Description
0x60 0 Key
0x61 1 Key
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 key
0X6D minus sign (–) key
0x6e DECIMAL Point (.) key
0x6F Division sign (/) key
----------------------------------------------
The following constants represent function keys:
Value Description
0x70 F1 Key
0x71 F2 Key
0x72 F3 Key
0x73 F4 Key
0x74 F5 Key
0x75 F6 Key
0x76 F7 Key
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
ASCII code corresponding to the keyboard