Reference API Roblox

Engine API

Website

Related

Reference API Roblox

KeyCode

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

Items 261

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.

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

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 1150

Settings