Keys must provide a symbol
attribute to facilitate keyboard mapping. Symbols are hardware-independent virtual key representations.
The following 140 keys are used in game.controller.keyboard:
Symbol | Character | ASCII value | Label (en_gb) |
---|---|---|---|
backspace | 8 | Backspace | |
tab | 9 | Tab | |
clear | 12 | Clear | |
enter | 13 | Enter | |
pause | 19 | Pause | |
escape | 27 | Escape | |
space | 32 | Space | |
exclaim | ! | 33 | ! |
doublequote | " | 34 | " |
hash | # | 35 | # |
dollar | $ | 36 | $ |
ampersand | & | 38 | & |
quote | ' | 39 | ' |
leftparen | ( | 40 | ( |
rightparen | ) | 41 | ) |
asterisk | * | 42 | * |
plus | + | 43 | + |
comma | , | 44 | , |
minus | - | 45 | - |
period | . | 46 | . |
slash | / | 47 | / |
0 | 0 | 48 | 0 |
1 | 1 | 49 | 1 |
2 | 2 | 50 | 2 |
3 | 3 | 51 | 3 |
4 | 4 | 52 | 4 |
5 | 5 | 53 | 5 |
6 | 6 | 54 | 6 |
7 | 7 | 55 | 7 |
8 | 8 | 56 | 8 |
9 | 9 | 57 | 9 |
colon | : | 58 | : |
semicolon | ; | 59 | ; |
less | < | 60 | < |
equals | = | 61 | = |
greater | > | 62 | > |
question | ? | 63 | ? |
at | @ | 64 | @ |
leftbracket | [ | 91 | [ |
backslash | \ | 92 | \ |
rightbracket | ] | 93 | ] |
caret | ^ | 94 | ^ |
underscore | _ | 95 | _ |
grave | ` | 96 | ` |
a | a | 97 | A |
b | b | 98 | B |
c | c | 99 | C |
d | d | 100 | D |
e | e | 101 | E |
f | f | 102 | F |
g | g | 103 | G |
h | h | 104 | H |
i | i | 105 | I |
j | j | 106 | J |
k | k | 107 | K |
l | l | 108 | L |
m | m | 109 | m |
n | n | 110 | n |
o | o | 111 | O |
p | p | 112 | P |
q | q | 113 | Q |
r | r | 114 | R |
s | s | 115 | S |
t | t | 116 | T |
u | u | 117 | U |
v | v | 118 | V |
w | w | 119 | W |
x | x | 120 | X |
y | y | 121 | Y |
z | z | 122 | Z |
leftbrace | { | 123 | { |
bar | | | 124 | | |
rightbrace | } | 125 | } |
tilde | ~ | 126 | ~ |
delete | 127 | Delete |
Symbol | Label (en_gb) |
---|---|
kp0 | Num Pad 0 |
kp1 | Num Pad 1 |
kp2 | Num Pad 2 |
kp3 | Num Pad 3 |
kp4 | Num Pad 4 |
kp5 | Num Pad 5 |
kp6 | Num Pad 6 |
kp7 | Num Pad 7 |
kp8 | Num Pad 8 |
kp9 | Num Pad 9 |
kpperiod | Num Pad . |
kpdivide | Num Pad / |
kpmultiply | Num Pad * |
kpminus | Num Pad - |
kpplus | Num Pad + |
kpenter | Num Pad Enter |
kpequals | Num Pad = |
up | Up |
down | Down |
right | Right |
left | Left |
insert | Insert |
home | Home |
end | End |
pageup | Page Up |
pagedown | Page Down |
f1 | F1 |
f2 | F2 |
f3 | F3 |
f4 | F4 |
f5 | F5 |
f6 | F6 |
f7 | F7 |
f8 | F8 |
f9 | F9 |
f10 | F10 |
f11 | F11 |
f12 | F12 |
f13 | F13 |
f14 | F14 |
f15 | F15 |
numlock | Num Lock |
capslock | Caps Lock |
scrollock | Scroll Lock |
leftshift | Left Shift |
rightshift | Right Shift |
leftctrl | Left Ctrl |
rightctrl | Right Ctrl |
leftalt | Left Alt |
rightalt | Right Alt |
leftmeta | Left Meta |
rightmeta | Right Meta |
leftsuper | Left Windows |
rightsuper | Right Windows |
mode | Mode/Option |
compose | Compose |
help | Help |
printscreen | Print Screen |
sysreq | SysReq |
break | Break |
menu | Menu |
power | Power |
euro | € |
undo | Undo |
oem102 | OEM 102nd Key |