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.

666World0160

Generally not used.

666World1161

Generally not used.

666World2162

Generally not used.

666World3163

Generally not used.

666World4164

Generally not used.

666World5165

Generally not used.

666World6166

Generally not used.

666World7167

Generally not used.

666World8168

Generally not used.

666World9169

Generally not used.

666World10170

Generally not used.

666World11171

Generally not used.

666World12172

Generally not used.

666World13173

Generally not used.

666World14174

Generally not used.

666World15175

Generally not used.

666World16176

Generally not used.

666World17177

Generally not used.

666World18178

Generally not used.

666World19179

Generally not used.

666World20180

Generally not used.

666World21181

Generally not used.

666World22182

Generally not used.

666World23183

Generally not used.

666World24184

Generally not used.

666World25185

Generally not used.

666World26186

Generally not used.

666World27187

Generally not used.

666World28188

Generally not used.

666World29189

Generally not used.

666World30190

Generally not used.

666World31191

Generally not used.

666World32192

Generally not used.

666World33193

Generally not used.

666World34194

Generally not used.

666World35195

Generally not used.

666World36196

Generally not used.

666World37197

Generally not used.

666World38198

Generally not used.

666World39199

Generally not used.

666World40200

Generally not used.

666World41201

Generally not used.

666World42202

Generally not used.

666World43203

Generally not used.

666World44204

Generally not used.

666World45205

Generally not used.

666World46206

Generally not used.

666World47207

Generally not used.

666World48208

Generally not used.

666World49209

Generally not used.

666World50210

Generally not used.

666World51211

Generally not used.

666World52212

Generally not used.

666World53213

Generally not used.

666World54214

Generally not used.

666World55215

Generally not used.

666World56216

Generally not used.

666World57217

Generally not used.

666World58218

Generally not used.

666World59219

Generally not used.

666World60220

Generally not used.

666World61221

Generally not used.

666World62222

Generally not used.

666World63223

Generally not used.

666World64224

Generally not used.

666World65225

Generally not used.

666World66226

Generally not used.

666World67227

Generally not used.

666World68228

Generally not used.

666World69229

Generally not used.

666World70230

Generally not used.

666World71231

Generally not used.

666World72232

Generally not used.

666World73233

Generally not used.

666World74234

Generally not used.

666World75235

Generally not used.

666World76236

Generally not used.

666World77237

Generally not used.

666World78238

Generally not used.

666World79239

Generally not used.

666World80240

Generally not used.

666World81241

Generally not used.

666World82242

Generally not used.

666World83243

Generally not used.

666World84244

Generally not used.

666World85245

Generally not used.

666World86246

Generally not used.

666World87247

Generally not used.

666World88248

Generally not used.

666World89249

Generally not used.

666World90250

Generally not used.

666World91251

Generally not used.

666World92252

Generally not used.

666World93253

Generally not used.

666World94254

Generally not used.

666World95255

Generally not used.

662MouseLeftButton1018
662MouseRightButton1019
662MouseMiddleButton1020
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 1048

Settings