Virtual Key Code
Virtual Key Code
The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard
equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.
Constant/value Description
- Undefined
0x07
- Reserved
0x0A-0B
- Undefined
0x0E-0F
- Undefined
0x16
VK_SPACE SPACEBAR
0x20
0x30 0 key
0x31 1 key
0x32 2 key
0x33 3 key
0x34 4 key
0x35 5 key
0x36 6 key
0x37 7 key
0x38 8 key
0x39 9 key
- Undefined
0x3A-40
0x41 A key
0x42 B key
0x43 C key
0x44 D key
0x45 E key
0x46 F key
0x47 G key
0x48 H key
0x49 I key
0x4A J key
0x4B K key
0x4C L key
0x4D M key
0x4E N key
0x4F O key
0x50 P key
0x51 Q key
0x52 R key
0x53 S key
0x54 T key
0x55 U key
0x56 V key
0x57 W key
0x58 X key
0x59 Y key
0x5A Z key
- Reserved
0x5E
VK_F1 F1 key
0x70
VK_F2 F2 key
0x71
VK_F3 F3 key
0x72
VK_F4 F4 key
0x73
VK_F5 F5 key
0x74
VK_F6 F6 key
0x75
VK_F7 F7 key
0x76
VK_F8 F8 key
0x77
VK_F9 F9 key
0x78
- Unassigned
0x88-8F
- Unassigned
0x97-9F
- Reserved
0xB8-B9
- Unassigned
0xD8-DA
- Reserved
0xE0
VK_OEM_102 Either the angle bracket key or the backslash key on the
0xE2 RT 102-key keyboard
- Unassigned
0xE8
VK_NONAME Reserved
0xFC
Requirements
Minimum supported client Windows 2000 Professional [desktop apps only]
3 control-break processing
8 backspace key
9 tab key
12 clear key
13 enter key
16 shift key
17 ctrl key
18 alt key
19 pause key
27 esc key
32 spacebar
33 page up key
35 end key
36 home key
38 up arrow key
41 select key
42 print key
43 execute key
45 ins key
46 del key
47 help key
48 0 key
49 1 key
50 2 key
51 3 key
52 4 key
53 5 key
54 6 key
55 7 key
56 8 key
57 9 key
65 a key
66 b key
67 c key
68 d key
69 e key
70 f key
71 g key
72 h key
73 i key
74 j key
75 k key
76 l key
77 m key
78 n key
79 o key
80 p key
81 q key
82 r key
83 s key
84 t key
85 u key
86 v key
87 w key
88 x key
89 y key
90 z key
112 f1 key
113 f2 key
114 f3 key
115 f4 key
116 f5 key
117 f6 key
118 f7 key
119 f8 key
120 f9 key