ValidKey
tip
For the list of valid keys, refer to the type definition.
Key/value pairs
Key | Value |
---|---|
BACKSPACE | backspace |
TAB | tab |
ENTER | enter |
SHIFT | shift |
CTRL | ctrl |
ALT | alt |
CAPS | capslock |
ESCAPE | esc |
SPACE | space |
PAGE_UP | pageup |
PAGE_DOWN | pagedown |
END | end |
HOME | home |
ARROW_LEFT | left |
ARROW_UP | up |
ARROW_RIGHT | right |
ARROW_DOWN | down |
INSERT | ins |
DELETE | del |
A | a |
B | b |
C | c |
D | d |
E | e |
F | f |
G | g |
H | h |
I | i |
J | j |
K | k |
L | l |
M | m |
N | n |
O | o |
P | p |
Q | q |
R | r |
S | s |
T | t |
U | u |
V | v |
W | w |
X | x |
Y | y |
Z | z |
WINDOW_LEFT | meta |
WINDOW_RIGHT | meta |
SELECT | meta |
NUMPAD_0 | 0 |
NUMPAD_1 | 1 |
NUMPAD_2 | 2 |
NUMPAD_3 | 3 |
NUMPAD_4 | 4 |
NUMPAD_5 | 5 |
NUMPAD_6 | 6 |
NUMPAD_7 | 7 |
NUMPAD_8 | 8 |
NUMPAD_9 | 9 |
MULTIPLY | * |
ADD | + |
SUBTRACT | - |
DECIMAL_POINT | . |
DIVIDE | / |
F1 | f1 |
F2 | f2 |
F3 | f3 |
F4 | f4 |
F5 | f5 |
F6 | f6 |
F7 | f7 |
F8 | f8 |
F9 | f9 |
F10 | f10 |
F11 | f11 |
F12 | f12 |
; | ; |
= | = |
, | , |
- | - |
. | . |
/ | / |
` | ` |
[ | [ |
\ | \ |
] | ] |
" | ' |
~ | ` |
! | 1 |
@ | 2 |
# | 3 |
$ | 4 |
% | 5 |
^ | 6 |
& | 7 |
* | 8 |
( | 9 |
) | 0 |
_ | - |
+ | = |
: | ; |
< | , |
> | . |
? | / |
Type definition
type ValidKey = "BACKSPACE" |
"TAB" |
"ENTER" |
"SHIFT" |
"CTRL" |
"ALT" |
"CAPS" |
"ESCAPE" |
"SPACE" |
"PAGE_UP" |
"PAGE_DOWN" |
"END" |
"HOME" |
"ARROW_LEFT" |
"ARROW_UP" |
"ARROW_RIGHT" |
"ARROW_DOWN" |
"INSERT" |
"DELETE" |
"A" |
"B" |
"C" |
"D" |
"E" |
"F" |
"G" |
"H" |
"I" |
"J" |
"K" |
"L" |
"M" |
"N" |
"O" |
"P" |
"Q" |
"R" |
"S" |
"T" |
"U" |
"V" |
"W" |
"X" |
"Y" |
"Z" |
"WINDOW_LEFT" |
"WINDOW_RIGHT" |
"SELECT" |
"NUMPAD_0" |
"NUMPAD_1" |
"NUMPAD_2" |
"NUMPAD_3" |
"NUMPAD_4" |
"NUMPAD_5" |
"NUMPAD_6" |
"NUMPAD_7" |
"NUMPAD_8" |
"NUMPAD_9" |
"MULTIPLY" |
"ADD" |
"SUBTRACT" |
"DECIMAL_POINT" |
"DIVIDE" |
"F1" |
"F2" |
"F3" |
"F4" |
"F5" |
"F6" |
"F7" |
"F8" |
"F9" |
"F10" |
"F11" |
"F12" |
";" |
"=" |
" |
" |
"-" |
"." |
"/" |
"`" |
"[" |
"\\" |
"]" |
"\"" |
"~" |
"!" |
"@" |
"#" |
"$" |
"%" |
"^" |
"&" |
"*" |
"(" |
")" |
"_" |
"+" |
":" |
"<" |
">" |
"?" |
"|";