Valid Inputs

Below is a list of all the acceptable strings you can use for SetKey() and similar functions that accept a string to represent some sort of input device.

We recommend that you use the included Keys class, which has equivalents of all strings listed below, and gives you the benefit of autocomplete to help you avoid typos and other mistakes. For example, instead of using the string "KeypadPeriod" you would use Keys.KeypadPeriod in its place.

Keyboard Inputs

Alpha0
Alpha1
Alpha2
Alpha3
Alpha4
Alpha5
Alpha6
Alpha7
Alpha8
Alpha9
AltGr
Ampersand
Asterisk
At
BackQuote
Backslash
Backspace
Break
CapsLock
Caret
Clear
Colon
Comma
Delete
Dollar
DoubleQuote
DownArrow
End
Equals
Escape
Exclaim
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
Greater
Hash
Help
Home
Insert
Keypad0
Keypad1
Keypad2
Keypad3
Keypad4
Keypad5
Keypad6
Keypad7
Keypad8
Keypad9
KeypadDivide
KeypadEnter
KeypadEquals
KeypadMinus
KeypadMultiply
KeypadPeriod
KeypadPlus
LeftAlt
LeftApple
LeftArrow
LeftBracket
LeftControl
LeftParen
LeftShift
LeftWindows
Less
Menu
Minus
Numlock
PageDown
PageUp
Pause
Period
Plus
Print
Question
Quote
Return
RightAlt
RightApple
RightArrow
RightBracket
RightControl
RightParen
RightShift
RightWindows
ScrollLock
Semicolon
Slash
Space
SysReq
Tab
Underscore
UpArrow
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

Mouse Inputs

Gamepad Inputs

Last updated

Was this helpful?