Reference API Roblox

Engine API

Website

Related

Reference API Roblox

KeyCode

Byte keycodes that represent the key or button involved in user input.

Items 275

HistoryNameValueDescription
238Unknown0

Blank value that represents no key being pressed.

238Backspace8

The Backspace key.

238Tab9

The Tab key.

238Clear12

Only present on certain keyboards.

238Return13

Frequently known as Enter.

238Pause19

Only present on certain keyboards.

238Escape27

The Escape key.

238Space32

The Space key.

238QuotedDouble34

The " key.

238Hash35

The # key.

238Dollar36

The $ key.

238Percent37

The % key.

238Ampersand38

The & key.

238Quote39

The ' key.

238LeftParenthesis40

The ( key.

238RightParenthesis41

The ) key.

238Asterisk42

The * key.

238Plus43

The + key.

238Comma44

The , key.

238Minus45

The - key.

238Period46

The . key.

238Slash47

The / key.

238Zero48

The 0 key.

238One49

The 1 key.

238Two50

The 2 key.

238Three51

The 3 key.

238Four52

The 4 key.

238Five53

The 5 key.

238Six54

The 6 key.

238Seven55

The 7 key.

238Eight56

The 8 key.

238Nine57

The 9 key.

238Colon58

The : key.

238Semicolon59

The ; key.

238LessThan60

The < key.

238Equals61

The = key.

238GreaterThan62

The > key.

238Question63

The ? key.

238At64

The @ key.

238LeftBracket91

The [ key.

238BackSlash92

The \ key.

238RightBracket93

The ] key.

238Caret94

The ^ key.

238Underscore95

The _ key.

238Backquote96

The ` key.

238A97

The A key.

238B98

The B key.

238C99

The C key.

238D100

The D key.

238E101

The E key.

238F102

The F key.

238G103

The G key.

238H104

The H key.

238I105

The I key.

238J106

The J key.

238K107

The K key.

238L108

The L key.

238M109

The M key.

238N110

The N key.

238O111

The O key.

238P112

The P key.

238Q113

The Q key.

238R114

The R key.

238S115

The S key.

238T116

The T key.

238U117

The U key.

238V118

The V key.

238W119

The W key.

238X120

The X key.

238Y121

The Y key.

238Z122

The Z key.

238LeftCurly123

The { key.

238Pipe124

The | key.

238RightCurly125

The } key.

238Tilde126

The ~ key.

133Delete127

The Del key.

666KeypadZero256

The 0 key on the keypad cluster.

666KeypadOne257

The 1 key on the keypad cluster.

666KeypadTwo258

The 2 key on the keypad cluster.

666KeypadThree259

The 3 key on the keypad cluster.

666KeypadFour260

The 4 key on the keypad cluster.

666KeypadFive261

The 5 key on the keypad cluster.

666KeypadSix262

The 6 key on the keypad cluster.

666KeypadSeven263

The 7 key on the keypad cluster.

666KeypadEight264

The 8 key on the keypad cluster.

666KeypadNine265

The 9 key on the keypad cluster.

666KeypadPeriod266

The . key on the keypad cluster.

666KeypadDivide267

The / key on the keypad cluster.

666KeypadMultiply268

The * key on the keypad cluster.

666KeypadMinus269

The - key on the keypad cluster.

666KeypadPlus270

The + key on the keypad cluster.

666KeypadEnter271

The Enter key on the keypad cluster.

666KeypadEquals272

The = key on the keypad cluster.

666Up273

The arrow key.

666Down274

The arrow key.

666Right275

The arrow key.

666Left276

The arrow key.

666Insert277

The Insert key.

666Home278

The Home key.

666End279

The End key.

666PageUp280

The PgUp key.

666PageDown281

The PgDown key.

666F1282

The F1 key.

666F2283

The F2 key.

666F3284

The F3 key.

666F4285

The F4 key.

666F5286

The F5 key.

666F6287

The F6 key.

666F7288

The F7 key.

666F8289

The F8 key.

666F9290

The F9 key.

666F10291

The F10 key.

666F11292

The F11 key.

666F12293

The F12 key.

666F13294

The F13 key. Only present on certain keyboards.

666F14295

The F14 key. Only present on certain keyboards.

666F15296

The F15 key. Only present on certain keyboards.

666NumLock300

The Num Lock key on the keypad cluster.

666CapsLock301

The Caps Lock key.

666ScrollLock302

The Scr Lock key.

666RightShift303

The right side Shift key.

666LeftShift304

The left side Shift key.

666RightControl305

The right side Ctrl key.

666LeftControl306

The left side Ctrl key.

666RightAlt307

The right side Alt key.

666LeftAlt308

The left side Alt key.

666RightMeta309

The right side Meta key.

666LeftMeta310

The left side Meta key.

666LeftSuper311

The left side Super key. Better known as the Windows key or Cmd key.

666RightSuper312

The right side Super key. Better known as the Windows key or Cmd key.

666Mode313

Only present on certain keyboards.

666Compose314

Only present on certain keyboards.

666Help315

Only present on certain keyboards.

666Print316

Only present on certain keyboards.

666SysReq317

Only present on certain keyboards.

666Break318

Only present on certain keyboards.

666Menu319

The Menu key.

666Power320

Only present on certain keyboards.

666Euro321

The key. Only present on certain keyboards.

666Undo322

Only present on certain keyboards.

666ButtonX1000

Gamepad X button.

666ButtonY1001

Gamepad Y button.

666ButtonA1002

Gamepad A button.

666ButtonB1003

Gamepad B button.

666ButtonR11004

Gamepad R1 button.

666ButtonL11005

Gamepad L1 button.

666ButtonR21006

Gamepad R2 button.

666ButtonL21007

Gamepad L2 button.

666ButtonR31008

Gamepad R3 button.

666ButtonL31009

Gamepad L3 button.

666ButtonStart1010

Gamepad Start button.

666ButtonSelect1011

Gamepad Select button.

666DPadLeft1012

Left arrow on a gamepad D-pad.

666DPadRight1013

Right arrow on a gamepad D-pad.

666DPadUp1014

Up arrow on a gamepad D-pad.

666DPadDown1015

Down arrow on a gamepad D-pad.

666Thumbstick11016

Gamepad primary thumbstick.

666Thumbstick21017

Gamepad secondary thumbstick.

696Thumbstick1Up1018

Up vector on the gamepad primary thumbstick. Primarily used in the Input Action System.

696Thumbstick1Down1019

Down vector on the gamepad primary thumbstick. Primarily used in the Input Action System.

696Thumbstick1Left1020

Left vector on the gamepad primary thumbstick. Primarily used in the Input Action System.

696Thumbstick1Right1021

Right vector on the gamepad primary thumbstick. Primarily used in the Input Action System.

696Thumbstick2Up1022

Up vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.

696Thumbstick2Down1023

Down vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.

696Thumbstick2Left1024

Left vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.

696Thumbstick2Right1025

Right vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.

696MouseLeftButton1026
696MouseRightButton1027
696MouseMiddleButton1028
696MousePosition1033

The position of a mouse in the viewport. Primarily used in the Input Action System.

702Touch1034

The position of a touch in the viewport. Primarily used in the Input Action System.

707MouseWheel1035
707TrackpadPan1040
707TrackpadPinch1045
708MouseDelta1048
708World0160
708World1161
708World2162
708World3163
708World4164
708World5165
708World6166
708World7167
708World8168
708World9169
708World10170
708World11171
708World12172
708World13173
708World14174
708World15175
708World16176
708World17177
708World18178
708World19179
708World20180
708World21181
708World22182
708World23183
708World24184
708World25185
708World26186
708World27187
708World28188
708World29189
708World30190
708World31191
708World32192
708World33193
708World34194
708World35195
708World36196
708World37197
708World38198
708World39199
708World40200
708World41201
708World42202
708World43203
708World44204
708World45205
708World46206
708World47207
708World48208
708World49209
708World50210
708World51211
708World52212
708World53213
708World54214
708World55215
708World56216
708World57217
708World58218
708World59219
708World60220
708World61221
708World62222
708World63223
708World64224
708World65225
708World66226
708World67227
708World68228
708World69229
708World70230
708World71231
708World72232
708World73233
708World74234
708World75235
708World76236
708World77237
708World78238
708World79239
708World80240
708World81241
708World82242
708World83243
708World84244
708World85245
708World86246
708World87247
708World88248
708World89249
708World90250
708World91251
708World92252
708World93253
708World94254
708World95255
708MouseBackButton1029
708MouseNoButton1030
708MouseX1031
708MouseY1032

Description

The KeyCode enum contains a list of byte keycodes that represent the key or button involved in user input. This enum also includes buttons and axes present on gamepads, and 96 World[] values for non-standard buttons.

Note that keyboard values refer to the physical position of buttons on a standard QWERTY keyboard. Provided the user's system is configured correctly, the location of keys (such as WASD) will remain the same on other keyboard types such as Dvorak keyboards where it would map to ,AOE.

See also InputObject, used for keyboard and gamepad input.

History 1878

Settings