Skip to main content

ValidKey

tip

For the list of valid keys, refer to the type definition.

Key/value pairs

KeyValue
BACKSPACEbackspace
TABtab
ENTERenter
SHIFTshift
CTRLctrl
ALTalt
CAPScapslock
ESCAPEesc
SPACEspace
PAGE_UPpageup
PAGE_DOWNpagedown
ENDend
HOMEhome
ARROW_LEFTleft
ARROW_UPup
ARROW_RIGHTright
ARROW_DOWNdown
INSERTins
DELETEdel
Aa
Bb
Cc
Dd
Ee
Ff
Gg
Hh
Ii
Jj
Kk
Ll
Mm
Nn
Oo
Pp
Qq
Rr
Ss
Tt
Uu
Vv
Ww
Xx
Yy
Zz
WINDOW_LEFTmeta
WINDOW_RIGHTmeta
SELECTmeta
NUMPAD_00
NUMPAD_11
NUMPAD_22
NUMPAD_33
NUMPAD_44
NUMPAD_55
NUMPAD_66
NUMPAD_77
NUMPAD_88
NUMPAD_99
MULTIPLY*
ADD+
SUBTRACT-
DECIMAL_POINT.
DIVIDE/
F1f1
F2f2
F3f3
F4f4
F5f5
F6f6
F7f7
F8f8
F9f9
F10f10
F11f11
F12f12
;;
==
,,
--
..
//
``
[[
\\
]]
"'
~`
!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" |
";" |
"=" |
" |
" |
"-" |
"." |
"/" |
"`" |
"[" |
"\\" |
"]" |
"\"" |
"~" |
"!" |
"@" |
"#" |
"$" |
"%" |
"^" |
"&" |
"*" |
"(" |
")" |
"_" |
"+" |
":" |
"<" |
">" |
"?" |
"|";