Skip to content

PS2 keyboard scancodes

Kyuchumimo edited this page Nov 17, 2024 · 3 revisions

⚠️ Note: Scancodes mentioned here are in hexadecimal

*** KEYCODES ***

Key Scancode
A 1C
B 32
C 21
D 23
E 24
F 2B
G 34
H 33
I 43
J 3B
K 42
L 4B
M 3A
N 31
O 44
P 4D
Q 15
R 2D
S 1B
T 2C
U 3C
V 2A
W 1D
X 22
Y 35
Z 1A
0 45 or 70 (numpad)
1 16 or 69 (numpad)
2 1E or 72 (numpad)
3 26 or 7A (numpad)
4 25 or 6B (numpad)
5 2E or 73 (numpad)
6 36 or 74 (numpad)
7 3D or 6C (numpad)
8 3E or 75 (numpad)
9 46 or 7D (numpad)
MINUS 4E or 7B (numpad)
EQUALS 55
LEFTBRACKET 54
RIGHTBRACKET 5B
BACKSLASH 5D
SEMICOLON 4C
APOSTROPHE 52
GRAVE 0E
COMMA 41
PERIOD 49
SLASH 4A or E04A (numpad)
SPACE 29
TAB 0D
RETURN 5A or E05A (numpad)
BACKSPACE 66
DELETE E071
INSERT E070
PAGEUP E07D
PAGEDOWN E07A
HOME E06C
END E069
UP E075
DOWN E072
LEFT E06B
RIGHT E074
CAPSLOCK 58
CTRL 14 (left) or E014 (right)
SHIFT 12 (left) or 59 (right)
ALT 11 (left) or E011 (right)
.-----------------------------------------------------------------------------------------.        .----------------------.
|  `  |  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  0  |  -  |  =  |  Backsps  |        |  Ins  |  Home | PgUp |
|-----------------------------------------------------------------------------------------|        |----------------------|
|  Tab   |  Q  |  W  |  E  |  R  |  T  |  Y  |  U  |  I  |  O  |  P  |  [  |  ]  |   \    |        |  Del  |  End  | PgDn |
|-----------------------------------------------------------------------------------------|        '----------------------'
|  CapsLck  |  A  |  S  |  D  |  F  |  G  |  H  |  J  |  K  |  L  |  ;  |  '  |    Enter  |
|-----------------------------------------------------------------------------------------|                .-------.
|  Shift       |  Z  |  X  |  C  |  V  |  B  |  N  |  M  |  ,  |  .  |  /  |       Shift  |                |   Up  |
|-----------------------------------------------------------------------------------------|        .----------------------.
|  Ctrl  |  Alt  |                                                       |  Alt  |  Ctrl  |        |  Left |  Down | Rght |
'-----------------------------------------------------------------------------------------'        '----------------------'
Clone this wiki locally