US Layout
Bulgarian (Latin) Layout
Chinese (Simplified) - US Layout
Chinese (Simplified, Singapore) - US Layout
Chinese (Traditional) - US Layout
Chinese (Traditional, Hong Kong S.A.R.) - US Layout
Chinese (Traditional, Macao S.A.R.) - US Layout Scancodes

Scancodes using version 5.0.2180.1—10.0.27729.1000 of KBDUS.DLL

Overview • Scancodes • Virtual keys • Shift states • Creating shortcut? • How do I type?
Sorting It All Out • MSKLC • Terminology
01
Esc
3B
F1
3C
F2
3D
F3
3E
F4
3F
F5
40
F6
41
F7
42
F8
43
F9
44
F10
57
F11
58
F12
54
Sys Req
46
Scroll Lock
E1 1D
Pause
29
`
02
1
03
2
04
3
05
4
06
5
07
6
08
7
09
8
0A
9
0B
0
0C
-
0D
=
0E
Backspace
E0 52
Insert
E0 47
Home
E0 49
Page Up
45
Pause
E0 35
Num /
37
Num *
4A
Num -
0F
Tab
10
q
11
w
12
e
13
r
14
t
15
y
16
u
17
i
18
o
19
p
1A
[
1B
]
2B
\
E0 53
Delete
E0 4F
End
E0 51
Page Down
47
Num 7
48
Num 8
49
Num 9
4E
Num +
3A
Caps Lock
1E
a
1F
s
20
d
21
f
22
g
23
h
24
j
25
k
26
l
27
;
28
'
1C
Enter
4B
Num 4
4C
Num 5
4D
Num 6
2A
Shift
2C
z
2D
x
2E
c
2F
v
30
b
31
n
32
m
33
,
34
.
35
/
36
Right Shift
E0 48
Up
4F
Num 1
50
Num 2
51
Num 3
E0 1C
Num Enter
1D
Ctrl
E0 5B
Left Windows
38
Alt
39
Space
E0 38
Right Alt
E0 5C
Right Windows
E0 5D
Application
E0 1D
Right Ctrl
E0 4B
Left
E0 50
Down
E0 4D
Right
52
Num 0
53
Num Del
Arrangement:
Legend overlay:

Scancodes are generated by keyboard firmware, identifying the individual physical keys on the hardware and therefore do not depend on the software keyboard layout. While keyboard layouts cannot influence the values, Windows supports remapping incoming scancodes (and so disabling Caps Lock for example).

Scancodes do not depend on modifiers, except as for below:

KeyBase stateControlShiftAlt
PrtSc/SysRqE0 2A E0 37E0 37E0 3754
Pause/BreakE1 1D 45 E1 9D C5E0 46 E0 C6

This page shows the Set 1 scancodes as hexadecimal numbers generated on key press. For other sets, see below.

Scancode Resources