The following list shows the symbolic constant names, hexadecimal values, and descriptive information for Microsoft Windows virtual-key codes. The codes are listed in numeric order.
VK_LBUTTON |
01H |
Left mouse button |
VK_RBUTTON |
02H |
Right mouse button |
VK_CANCEL |
03H |
Used for control-break processing |
VK_MBUTTON |
04H |
Middle mouse button (3-button mouse) |
|
05H–07H |
Undefined |
VK_BACK |
08H |
BACKSPACE key |
VK_TAB |
09H |
TAB key |
|
0AH–0BH |
Undefined |
VK_CLEAR |
0CH |
CLEAR key |
VK_RETURN |
0DH |
RETURN key |
VK_SHIFT |
10H |
SHIFT key |
VK_CONTROL |
11H |
CONTROL key |
VK_MENU |
12H |
MENU key |
VK_PAUSE |
13H |
PAUSE key |
VK_CAPITAL |
14H |
CAPITAL key |
|
15H–19H |
Reserved for Kanji systems |
|
1AH |
Undefined |
VK_ESCAPE |
1BH |
ESCAPE key |
|
1CH–1FH |
Reserved for Kanji systems |
VK_SPACE |
20H |
SPACEBAR |
VK_PRIOR |
21H |
PAGE UP key |
VK_NEXT |
22H |
PAGE DOWN key |
VK_END |
23H |
END key |
VK_HOME |
24H |
HOME key |
VK_LEFT |
25H |
LEFT ARROW key |
VK_UP |
26H |
UP ARROW key |
VK_RIGHT |
27H |
RIGHT ARROW key |
VK_DOWN |
28H |
DOWN ARROW key |
VK_SELECT |
29H |
SELECT key |
|
2AH |
OEM specific |
VK_EXECUTE |
2BH |
EXECUTE key |
VK_SNAPSHOT |
2CH |
PRINTSCREEN key for Windows version 3.0 and later |
VK_INSERT |
2DH |
INSERT key |
VK_DELETE |
2EH |
DELETE key |
VK_HELP |
2FH |
HELP key |
VK_0 |
30H |
0 key |
VK_1 |
31H |
1 key |
VK_2 |
32H |
2 key |
VK_3 |
33H |
3 key |
VK_4 |
34H |
4 key |
VK_5 |
35H |
5 key |
VK_6 |
36H |
6 key |
VK_7 |
37H |
7 key |
VK_8 |
38H |
8 key |
VK_9 |
39H |
9 key |
|
3AH–40H |
Undefined |
VK_A |
41H |
A key |
VK_B |
42H |
B key |
VK_C |
43H |
C key |
VK_D |
44H |
D key |
VK_E |
45H |
E key |
VK_F |
46H |
F key |
VK_G |
47H |
G key |
VK_H |
48H |
H key |
VK_I |
49H |
I key |
VK_J |
4AH |
J key |
VK_K |
4BH |
K key |
VK_L |
4CH |
L key |
VK_M |
4DH |
M key |
VK_N |
4EH |
N key |
VK_O |
4FH |
O key |
VK_P |
50H |
P key |
VK_Q |
51H |
Q key |
VK_R |
52H |
R key |
VK_S |
53H |
S key |
VK_T |
54H |
T key |
VK_U |
55H |
U key |
VK_V |
56H |
V key |
VK_W |
57H |
W key |
VK_X |
58H |
X key |
VK_Y |
59H |
Y key |
VK_Z |
5AH |
Z key |
|
5BH–5FH |
Undefined |
VK_NUMPAD0 |
60H |
Numeric key pad 0 key |
VK_NUMPAD1 |
61H |
Numeric key pad 1 key |
VK_NUMPAD2 |
62H |
Numeric key pad 2 key |
VK_NUMPAD3 |
63H |
Numeric key pad 3 key |
VK_NUMPAD4 |
64H |
Numeric key pad 4 key |
VK_NUMPAD5 |
65H |
Numeric key pad 5 key |
VK_NUMPAD6 |
66H |
Numeric key pad 6 key |
VK_NUMPAD7 |
67H |
Numeric key pad 7 key |
VK_NUMPAD8 |
68H |
Numeric key pad 8 key |
VK_NUMPAD9 |
69H |
Numeric key pad 9 key |
VK_MULTIPLY |
6AH |
Multiply key |
VK_ADD |
6BH |
Add key |
VK_SEPARATER |
6CH |
Separater key |
VK_SUBTRACT |
6DH |
Subtract key |
VK_DECIMAL |
6EH |
Decimal key |
VK_DIVIDE |
6FH |
Divide key |
VK_F1 |
70H |
F1 key |
VK_F2 |
71H |
F2 key |
VK_F3 |
72H |
F3 key |
VK_F4 |
73H |
F4 key |
VK_F5 |
74H |
F5 key |
VK_F6 |
75H |
F6 key |
VK_F7 |
76H |
F7 key |
VK_F8 |
77H |
F8 key |
VK_F9 |
78H |
F9 key |
VK_F10 |
79H |
F10 key |
VK_F11 |
7AH |
F11 key |
VK_F12 |
7BH |
F12 key |
VK_F13 |
7CH |
F13 key |
VK_F14 |
7DH |
F14 key |
VK_F15 |
7EH |
F15 key |
VK_F16 |
7FH |
F16 key |
|
80H–87H |
OEM specific |
|
88H–8FH |
Unassigned |
VK_NUMLOCK |
90H |
NUM LOCK key |
|
91H |
OEM specific |
|
92H–B9H |
Unassigned |
|
BAH–C0H |
OEM specific |
|
C1H–DAH |
Unassigned |
|
DBH–E4H |
OEM specific |
|
E5H |
Unassigned |
|
E6H |
OEM specific |
|
E7H–E8H |
Unassigned |
|
E9H–F5H |
OEM specific |
|
F6H–FEH |
Unassigned |