Jump to content

User:Rev-san/Subpages/List of keyboard scancodes

From Wikipedia, the free encyclopedia
Scancodes used by IBM PC compatible computers
Physical key Group Usual
grid position
according to
ISO/IEC 9995-1
Scancode Representative
Windows
virtual keycode
X11
keycode
(dec)
Notes
IBM Set 1 or "XT Set"
(IBM PC, PC/XT)
(hexadecimal)
IBM Set 2 or "AT Set"
(IBM PC/AT)
(hexadecimal, incl. raw)
IBM Set 3 or "PS/2 Set"
(IBM 3270 PC, PS/2)
(hexadecimal, incl. raw)
USB
HID
(dec)
⎋ Esc (Escape) key other .. ..
(..)
..
(..)
.. VK_ESCAPE ..
F1 (Function 1) key function .. ..
(..)
..
(..)
.. .. ..
F2 (Function 2) key function .. ..
(..)
..
(..)
.. .. ..
F3 (Function 3) key function .. ..
(..)
..
(..)
.. .. ..
F4 (Function 4) key function .. ..
(..)
..
(..)
.. .. ..
F5 (Function 5) key function .. ..
(..)
..
(..)
.. .. ..
F6 (Function 6) key function .. ..
(..)
..
(..)
.. .. ..
F7 (Function 7) key function .. ..
(..)
..
(..)
.. .. ..
F8 (Function 8) key function .. ..
(..)
..
(..)
.. .. ..
F9 (Function 9) key function .. ..
(..)
..
(..)
.. .. ..
F10 (Function 10) key function .. ..
(..)
..
(..)
.. .. ..
F11 (Function 11) key function .. ..
(..)
..
(..)
.. .. ..
F12 (Function 12) key function .. ..
(..)
..
(..)
.. .. ..
Grave ` key typewriter/
alphanumerical
29 ??
(0E)
??
(0E)
53 VK_OEM_3 ..
1 key typewriter/
alphanumerical
02 ??
(16)
??
(16)
30 VK_KEY_1 ..
2 key typewriter/
alphanumerical
03 ??
(1E)
??
(1E)
31 VK_KEY_2 ..
3 key typewriter/
alphanumerical
04 ??
(26)
??
(26)
32 VK_KEY_3 ..
4 key typewriter/
alphanumerical
05 ??
(25)
??
(25)
33 VK_KEY_4 ..
5 key typewriter/
alphanumerical
06 ??
(2E)
??
(2E)
34 VK_KEY_5 ..
6 key typewriter/
alphanumerical
07 ??
(36)
??
(36)
35 VK_KEY_6 ..
7 key typewriter/
alphanumerical
08 ??
(3D)
??
(3D)
36 VK_KEY_7 ..
8 key typewriter/
alphanumerical
09 ??
(3E)
??
(3E)
37 VK_KEY_8 ..
9 key typewriter/
alphanumerical
0A ??
(46)
??
(46)
38 VK_KEY_9 ..
0 key typewriter/
alphanumerical
0B ??
(45)
??
(45)
39 VK_KEY_0 ..
Hyphen - key typewriter/
alphanumerical
0C ??
(4E)
??
(4E)
45 VK_OEM_MINUS ..
Equals = key typewriter/
alphanumerical
0D ??
(55)
??
(55)
46 VK_OEM_PLUS ..
⌫ Backspace key other 0E ??
(66)
??
(66)
42 VK_BACK ..
Tab ↹ (Tabulator) key typewriter/
alphanumerical
0F ??
(0D)
??
(0D)
43 VK_TAB ..
Q key typewriter/
alphanumerical
10 ??
(15)
??
(15)
20 VK_KEY_Q ..
W key typewriter/
alphanumerical
11 ??
(1D)
??
(1D)
26 VK_KEY_W ..
E key typewriter/
alphanumerical
12 ??
(24)
??
(24)
8 VK_KEY_E ..
R key typewriter/
alphanumerical
13 ??
(2D)
??
(2D)
21 VK_KEY_R ..
T key typewriter/
alphanumerical
14 ??
(2C)
??
(2C)
23 VK_KEY_T ..
Y key typewriter/
alphanumerical
15 ??
(35)
??
(35)
28 VK_KEY_Y ..
U key typewriter/
alphanumerical
16 ??
(3C)
??
(3C)
24 VK_KEY_U ..
I key typewriter/
alphanumerical
17 ??
(43)
??
(43)
12 VK_KEY_I ..
O key typewriter/
alphanumerical
18 ??
(44)
??
(44)
18 VK_KEY_O ..
P key typewriter/
alphanumerical
19 ??
(4D)
??
(4D)
19 VK_KEY_P ..
Left square bracket [ key typewriter/
alphanumerical
1A ??
(54)
??
(54)
47 VK_OEM_4 ..
Right square bracket ] key typewriter/
alphanumerical
1B ??
(5B)
??
(5B)
48 VK_OEM_6 ..
Backslash \ key typewriter/
alphanumerical
2B ??
(5D)
??
(5C)
49 VK_OEM_5 ..
⇬ Caps Lock key modifier 3A ??
(58)
??
(14)
57 .. ..
A key typewriter/
alphanumerical
1E ??
(1C)
??
(1C)
4 VK_KEY_A ..
S key typewriter/
alphanumerical
1F ??
(1B)
??
(1B)
22 VK_KEY_S ..
D key typewriter/
alphanumerical
20 ??
(23)
??
(23)
7 VK_KEY_D ..
F key typewriter/
alphanumerical
21 ??
(2B)
??
(2B)
9 VK_KEY_F ..
G key typewriter/
alphanumerical
22 ??
(34)
??
(34)
10 VK_KEY_G ..
H key typewriter/
alphanumerical
23 ??
(33)
??
(33)
11 VK_KEY_H ..
J key typewriter/
alphanumerical
24 ??
(3B)
??
(3B)
13 VK_KEY_J ..
K key typewriter/
alphanumerical
25 ??
(42)
??
(42)
14 VK_KEY_K ..
L key typewriter/
alphanumerical
26 ??
(4B)
??
(4B)
15 VK_KEY_L ..
Semicolon ; key typewriter/
alphanumerical
27 ??
(4C)
??
(4C)
51 VK_OEM_1 ..
Apostrophe ' key typewriter/
alphanumerical
28 ??
(52)
??
(52)
52 VK_OEM_7 ..
⌅ Enter key/↩ Return key/
CR (Carriage Return) key
other 1C ??
(5A)
??
(5A)
40 VK_RETURN ..
Left ⇧ Shift key modifier 2A ??
(12)
??
(12)
225 .. ..
Less-than < key typewriter/
alphanumerical
.. ??
(..)
??
(..)
.. VK_OEM_102 ..
Z key typewriter/
alphanumerical
2C ??
(1A)
??
(1A)
29 VK_KEY_Z ..
X key typewriter/
alphanumerical
2D ??
(22)
??
(22)
27 VK_KEY_X ..
C key typewriter/
alphanumerical
2E ??
(21)
??
(21)
6 VK_KEY_C ..
V key typewriter/
alphanumerical
2F ??
(2A)
??
(2A)
25 VK_KEY_V ..
B key typewriter/
alphanumerical
30 ??
(32)
??
(32)
5 VK_KEY_B ..
N key typewriter/
alphanumerical
31 ??
(31)
??
(31)
17 VK_KEY_N ..
M key typewriter/
alphanumerical
32 ??
(3A)
??
(3A)
16 VK_KEY_M ..
Comma , key typewriter/
alphanumerical
33 ??
(41)
??
(41)
54 VK_OEM_COMMA ..
Period . key typewriter/
alphanumerical
34 ??
(49)
??
(49)
55 VK_OEM_PERIOD ..
Slash / key typewriter/
alphanumerical
35 ??
(4A)
??
(4A)
56 VK_OEM_2 ..
Right ⇧ Shift key modifier 36 ??
(59)
??
(59)
229 .. ..
Left ⌃ Ctrl (Control) key modifier 1D ??
(14)
??
(11)
224 .. ..
Fn (Function) key modifier .. ..
(..)
..
(..)
.. .. ..
Left ⊞ Win (Windows) key vendor-specific .. ..
(..)
..
(..)
.. .. ..
Left ⎇ Alt (Alternate) key modifier 38 ??
(11)
??
(19)
226 .. ..
Space bar typewriter/
alphanumerical
39 ??
(29)
??
(29)
44 VK_SPACE ..
Right ⎇ Alt (Alternate) key/
⇮ AltGr (Alternate Graphic) key
modifier E0 38 ??
(E0 11)
??
(39)
230 .. ..
Right ⊞ Win (Windows) key vendor-specific .. ..
(..)
..
(..)
.. .. ..
≣ Menu (Application) key vendor-specific .. ..
(..)
..
(..)
.. .. ..
Right ⌃ Ctrl (Control) key modifier E0 1D ??
(E0 14)
??
(58)
228 .. ..
Print Screen key other .. ..
(..)
..
(..)
.. .. ..
Scroll Lock ⇩ key other .. ..
(..)
..
(..)
.. .. ..
⎉ Pause key other E1 1D 45 E1 9D C5 ??
(E1 14 77 E1 F0 14 F0 77)
..
(..)
.. .. ..
⌤ Ins (Insert) key other E0 52 ??
(E0 70)
??
(67)
73 .. ..
⇱ Home key other E0 47 ??
(E0 6C)
??
(6E)
74 .. ..
⇞ PgUp (Page Up) key other E0 49 ??
(E0 7D)
??
(6F)
75 .. ..
⌦ Del (Delete) key other E0 53 ??
(E0 71)
??
(64)
76 .. ..
⇲ End key other E0 4F ??
(E0 69)
??
(65)
77 .. ..
⇟ PgDn (Page Down) key other E0 51 ??
(E0 7A)
??
(6D)
78 .. ..
Up arrow key arrows/
navigation
E0 48 ??
(E0 75)
??
(63)
82 .. ..
Left arrow key arrows/
navigation
E0 4B ??
(E0 6B)
??
(61)
80 .. ..
Down arrow key arrows/
navigation
E0 50 ??
(E0 72)
??
(60)
81 .. ..
Right arrow key arrows/
navigation
E0 4D ??
(E0 74)
??
(6A)
79 .. ..
Num Lock ⇩ key modifier .. ..
(..)
..
(..)
.. .. ..
Numpad slash key numerical .. ..
(..)
..
(..)
.. VK_DIVIDE ..
Numpad asterisk key numerical .. ..
(..)
..
(..)
.. VK_MULTIPLY ..
Numpad minus key numerical .. ..
(..)
..
(..)
.. VK_SUBTRACT ..
Numpad 7 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD7 ..
Numpad 8 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD8 ..
Numpad 9 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD9 ..
Numpad 4 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD4 ..
Numpad 5 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD5 ..
Numpad 6 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD6 ..
Numpad plus + key numerical .. ..
(..)
..
(..)
.. VK_ADD ..
Numpad 1 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD1 ..
Numpad 2 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD2 ..
Numpad 3 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD3 ..
Numpad 0 key numerical .. ..
(..)
..
(..)
.. VK_NUMPAD0 ..
Numpad decimal . key numerical .. ..
(..)
..
(..)
.. VK_DECIMAL ..
Numpad ⌅ Enter key other .. ..
(..)
..
(..)
.. VK_RETURN ..
---------- other .. ..
(..)
..
(..)
.. .. ..
System Request key other .. ..
(..)
..
(..)
.. .. ..
⎊ Break key other .. ..
(..)
..
(..)
.. .. ..
Power key ACPI .. ..
(..)
..
(..)
.. .. ..
Sleep key ACPI .. ..
(..)
..
(..)
.. .. ..
Wake key ACPI .. ..
(..)
..
(..)
.. .. ..
Turbo key other .. ..
(..)
..
(..)
.. .. ..
key other .. ..
(..)
..
(..)
.. .. ..
key other .. ..
(..)
..
(..)
.. .. ..
key other .. ..
(..)
..
(..)
.. .. ..
key other .. ..
(..)
..
(..)
.. .. ..
key other .. ..
(..)
..
(..)
.. .. ..
key other .. ..
(..)
..
(..)
.. .. ..
(no physical key) protocol 01 43
(01)
43
(01)
.. .. .. scancode report for Set 1
(no physical key) protocol 02 41
(02)
41
(02)
.. .. .. scancode report for Set 2
(no physical key) protocol 03 3F
(03)
3F
(03)
.. .. .. scancode report for Set 3