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

Mouse0
Mouse1
Mouse2
Mouse3
Mouse4
Mouse5
Mouse6
Mouse Wheel Down
Mouse Wheel Up
Mouse Down
Mouse Left
Mouse Right
Mouse Up

Gamepad Inputs

JoystickButton0
JoystickButton1
JoystickButton2
JoystickButton3
JoystickButton4
JoystickButton5
JoystickButton6
JoystickButton7
JoystickButton8
JoystickButton9
JoystickButton10
JoystickButton11
JoystickButton12
JoystickButton13
JoystickButton14
JoystickButton15
JoystickButton16
JoystickButton17
JoystickButton18
JoystickButton19

Joystick1Button0
Joystick1Button1
Joystick1Button2
Joystick1Button3
Joystick1Button4
Joystick1Button5
Joystick1Button6
Joystick1Button7
Joystick1Button8
Joystick1Button9
Joystick1Button10
Joystick1Button11
Joystick1Button12
Joystick1Button13
Joystick1Button14
Joystick1Button15
Joystick1Button16
Joystick1Button17
Joystick1Button18
Joystick1Button19

Joystick2Button0
Joystick2Button1
Joystick2Button2
Joystick2Button3
Joystick2Button4
Joystick2Button5
Joystick2Button6
Joystick2Button7
Joystick2Button8
Joystick2Button9
Joystick2Button10
Joystick2Button11
Joystick2Button12
Joystick2Button13
Joystick2Button14
Joystick2Button15
Joystick2Button16
Joystick2Button17
Joystick2Button18
Joystick2Button19

Joystick3Button0
Joystick3Button1
Joystick3Button2
Joystick3Button3
Joystick3Button4
Joystick3Button5
Joystick3Button6
Joystick3Button7
Joystick3Button8
Joystick3Button9
Joystick3Button10
Joystick3Button11
Joystick3Button12
Joystick3Button13
Joystick3Button14
Joystick3Button15
Joystick3Button16
Joystick3Button17
Joystick3Button18
Joystick3Button19

Joystick4Button0
Joystick4Button1
Joystick4Button2
Joystick4Button3
Joystick4Button4
Joystick4Button5
Joystick4Button6
Joystick4Button7
Joystick4Button8
Joystick4Button9
Joystick4Button10
Joystick4Button11
Joystick4Button12
Joystick4Button13
Joystick4Button14
Joystick4Button15
Joystick4Button16
Joystick4Button17
Joystick4Button18
Joystick4Button19

Joy Axis 1-
Joy Axis 1+
Joy Axis 2-
Joy Axis 2+
Joy Axis 3-
Joy Axis 3+
Joy Axis 4-
Joy Axis 4+
Joy Axis 5-
Joy Axis 5+
Joy Axis 6-
Joy Axis 6+
Joy Axis 7-
Joy Axis 7+
Joy Axis 8-
Joy Axis 8+
Joy Axis 9-
Joy Axis 9+
Joy Axis 10-
Joy Axis 10+

Joy1 Axis 1-
Joy1 Axis 1+
Joy1 Axis 2-
Joy1 Axis 2+
Joy1 Axis 3-
Joy1 Axis 3+
Joy1 Axis 4-
Joy1 Axis 4+
Joy1 Axis 5-
Joy1 Axis 5+
Joy1 Axis 6-
Joy1 Axis 6+
Joy1 Axis 7-
Joy1 Axis 7+
Joy1 Axis 8-
Joy1 Axis 8+
Joy1 Axis 9-
Joy1 Axis 9+
Joy1 Axis 10-
Joy1 Axis 10+

Joy2 Axis 1-
Joy2 Axis 1+
Joy2 Axis 2-
Joy2 Axis 2+
Joy2 Axis 3-
Joy2 Axis 3+
Joy2 Axis 4-
Joy2 Axis 4+
Joy2 Axis 5-
Joy2 Axis 5+
Joy2 Axis 6-
Joy2 Axis 6+
Joy2 Axis 7-
Joy2 Axis 7+
Joy2 Axis 8-
Joy2 Axis 8+
Joy2 Axis 9-
Joy2 Axis 9+
Joy2 Axis 10-
Joy2 Axis 10+

Joy3 Axis 1-
Joy3 Axis 1+
Joy3 Axis 2-
Joy3 Axis 2+
Joy3 Axis 3-
Joy3 Axis 3+
Joy3 Axis 4-
Joy3 Axis 4+
Joy3 Axis 5-
Joy3 Axis 5+
Joy3 Axis 6-
Joy3 Axis 6+
Joy3 Axis 7-
Joy3 Axis 7+
Joy3 Axis 8-
Joy3 Axis 8+
Joy3 Axis 9-
Joy3 Axis 9+
Joy3 Axis 10-
Joy3 Axis 10+

Joy4 Axis 1-
Joy4 Axis 1+
Joy4 Axis 2-
Joy4 Axis 2+
Joy4 Axis 3-
Joy4 Axis 3+
Joy4 Axis 4-
Joy4 Axis 4+
Joy4 Axis 5-
Joy4 Axis 5+
Joy4 Axis 6-
Joy4 Axis 6+
Joy4 Axis 7-
Joy4 Axis 7+
Joy4 Axis 8-
Joy4 Axis 8+
Joy4 Axis 9-
Joy4 Axis 9+
Joy4 Axis 10-
Joy4 Axis 10+

Last updated