Key Codes
This is a list of all the key code numbers corresponding to the keyboard.
These are the numbers that the key() will return as it's key_code parameter.
Modding
Key Codes
Key | Code | Description | backspace | 8 | |
---|---|---|---|---|---|
tab | 9 | ||||
enter | 13 | ||||
shift | 16 | ||||
ctrl | 17 | ||||
alt | 18 | ||||
pause | 19 | Pause/Break | |||
caps lock | 20 | ||||
esc | 27 | ||||
spacebar | 32 | ||||
page up | 33 | ||||
page down | 34 | ||||
end | 35 | ||||
home | 36 | ||||
left arrow | 37 | ||||
up arrow | 38 | ||||
right arrow | 39 | ||||
down arrow | 40 | ||||
insert | 45 | ||||
delete | 46 | ||||
0 | 48 | Main Keyboard 0 | |||
1 | 49 | Main Keyboard 1 | |||
2 | 50 | Main Keyboard 2 | |||
3 | 51 | Main Keyboard 3 | |||
4 | 52 | Main Keyboard 4 | |||
5 | 53 | Main Keyboard 5 | |||
6 | 54 | Main Keyboard 6 | |||
7 | 55 | Main Keyboard 7 | |||
8 | 56 | Main Keyboard 8 | |||
9 | 57 | Main Keyboard 9 | |||
a | 65 | ||||
b | 66 | ||||
c | 67 | ||||
d | 68 | ||||
e | 69 | ||||
f | 70 | ||||
g | 71 | ||||
h | 72 | ||||
i | 73 | ||||
j | 74 | ||||
k | 75 | ||||
l | 76 | ||||
m | 77 | ||||
n | 78 | ||||
o | 79 | ||||
p | 80 | ||||
q | 81 | ||||
r | 82 | ||||
s | 83 | ||||
t | 84 | ||||
u | 85 | ||||
v | 86 | ||||
w | 87 | ||||
x | 88 | ||||
y | 89 | ||||
z | 90 | ||||
0n | 96 | Numpad 0 | |||
1n | 97 | Numpad 1 | |||
2n | 98 | Numpad 2 | |||
3n | 99 | Numpad 3 | |||
4n | 100 | Numpad 4 | |||
5n | 101 | Numpad 5 | |||
6n | 102 | Numpad 6 | |||
7n | 103 | Numpad 7 | |||
8n | 104 | Numpad 8 | |||
9n | 105 | Numpad 9 | |||
*n | 106 | Numpad Asterisk | |||
+n | 107 | Numpad Plus | |||
-n | 109 | Numpad Minus | |||
.n | 110 | Numpad Period | |||
/n | 111 | Numpad Slash | |||
f1 | 112 | ||||
f2 | 113 | ||||
f3 | 114 | ||||
f4 | 115 | ||||
f5 | 116 | ||||
f6 | 117 | ||||
f7 | 118 | ||||
f8 | 119 | ||||
f9 | 120 | ||||
f10 | 121 | ||||
f11 | 122 | ||||
f12 | 123 | ||||
numlock | 144 | ||||
scrolllock | 145 | ||||
; | 186 | ||||
= | 187 | ||||
, | 188 | ||||
- | 189 | ||||
. | 190 | ||||
/ | 191 | ||||
` | 192 | ||||
[ | 219 | ||||
\ | 220 | ||||
] | 221 | ||||
' | 222 |