Skip to main content
Version: Phaser v3.88.2

Phaser.Input.Keyboard.KeyCodes

Scope: static

Source: src/input/keyboard/keys/KeyCodes.js#L7
Since: 3.0.0

Static functions​

A​

A: number​

Description:

The A key.

Source: src/input/keyboard/keys/KeyCodes.js#L404
Since: 3.0.0


ALT​

ALT: number​

Description:

The ALT key.

Source: src/input/keyboard/keys/KeyCodes.js#L62
Since: 3.0.0


B​

B: number​

Description:

The B key.

Source: src/input/keyboard/keys/KeyCodes.js#L413
Since: 3.0.0


BACK_SLASH​

BACK_SLASH: number​

Description:

The BACK_SLASH key.

Source: src/input/keyboard/keys/KeyCodes.js#L800
Since: 3.0.0


BACKSPACE​

BACKSPACE: number​

Description:

The BACKSPACE key.

Source: src/input/keyboard/keys/KeyCodes.js#L17
Since: 3.0.0


BACKTICK​

BACKTICK: number​

Description:

The BACKTICK key.

Source: src/input/keyboard/keys/KeyCodes.js#L818
Since: 3.0.0


BRACKET_LEFT_FIREFOX​

BRACKET_LEFT_FIREFOX: number​

Description:

The BRACKET_LEFT_FIREFOX key.

Source: src/input/keyboard/keys/KeyCodes.js#L890
Since: 3.0.0


BRACKET_RIGHT_FIREFOX​

BRACKET_RIGHT_FIREFOX: number​

Description:

The BRACKET_RIGHT_FIREFOX key.

Source: src/input/keyboard/keys/KeyCodes.js#L881
Since: 3.0.0


C​

C: number​

Description:

The C key.

Source: src/input/keyboard/keys/KeyCodes.js#L422
Since: 3.0.0


CAPS_LOCK​

CAPS_LOCK: number​

Description:

The CAPS_LOCK key.

Source: src/input/keyboard/keys/KeyCodes.js#L80
Since: 3.0.0


CLOSED_BRACKET​

CLOSED_BRACKET: number​

Description:

The CLOSED_BRACKET key.

Source: src/input/keyboard/keys/KeyCodes.js#L836
Since: 3.0.0


COLON​

COLON: number​

Description:

The COLON key.

Source: src/input/keyboard/keys/KeyCodes.js#L854
Since: 3.0.0


COMMA​

COMMA: number​

Description:

The COMMA key.

Source: src/input/keyboard/keys/KeyCodes.js#L764
Since: 3.0.0


COMMA_FIREFOX​

COMMA_FIREFOX: number​

Description:

The COMMA_FIREFOX key.

Source: src/input/keyboard/keys/KeyCodes.js#L872
Since: 3.0.0


COMMA_FIREFOX_WINDOWS​

COMMA_FIREFOX_WINDOWS: number​

Description:

The COMMA_FIREFOX_WINDOWS key.

Source: src/input/keyboard/keys/KeyCodes.js#L863
Since: 3.0.0


CTRL​

CTRL: number​

Description:

The CTRL key.

Source: src/input/keyboard/keys/KeyCodes.js#L53
Since: 3.0.0


D​

D: number​

Description:

The D key.

Source: src/input/keyboard/keys/KeyCodes.js#L431
Since: 3.0.0


DELETE​

DELETE: number​

Description:

The DELETE key.

Source: src/input/keyboard/keys/KeyCodes.js#L197
Since: 3.0.0


DOWN​

DOWN: number​

Description:

The DOWN key.

Source: src/input/keyboard/keys/KeyCodes.js#L170
Since: 3.0.0


E​

E: number​

Description:

The E key.

Source: src/input/keyboard/keys/KeyCodes.js#L440
Since: 3.0.0


EIGHT​

EIGHT: number​

Description:

The EIGHT key.

Source: src/input/keyboard/keys/KeyCodes.js#L278
Since: 3.0.0


END​

END: number​

Description:

The END key.

Source: src/input/keyboard/keys/KeyCodes.js#L125
Since: 3.0.0


ENTER​

ENTER: number​

Description:

The ENTER key.

Source: src/input/keyboard/keys/KeyCodes.js#L35
Since: 3.0.0


ESC​

ESC: number​

Description:

The ESC key.

Source: src/input/keyboard/keys/KeyCodes.js#L89
Since: 3.0.0


F​

F: number​

Description:

The F key.

Source: src/input/keyboard/keys/KeyCodes.js#L449
Since: 3.0.0


F1​

F1: number​

Description:

The F1 key.

Source: src/input/keyboard/keys/KeyCodes.js#L638
Since: 3.0.0


F10​

F10: number​

Description:

The F10 key.

Source: src/input/keyboard/keys/KeyCodes.js#L719
Since: 3.0.0


F11​

F11: number​

Description:

The F11 key.

Source: src/input/keyboard/keys/KeyCodes.js#L728
Since: 3.0.0


F12​

F12: number​

Description:

The F12 key.

Source: src/input/keyboard/keys/KeyCodes.js#L737
Since: 3.0.0


F2​

F2: number​

Description:

The F2 key.

Source: src/input/keyboard/keys/KeyCodes.js#L647
Since: 3.0.0


F3​

F3: number​

Description:

The F3 key.

Source: src/input/keyboard/keys/KeyCodes.js#L656
Since: 3.0.0


F4​

F4: number​

Description:

The F4 key.

Source: src/input/keyboard/keys/KeyCodes.js#L665
Since: 3.0.0


F5​

F5: number​

Description:

The F5 key.

Source: src/input/keyboard/keys/KeyCodes.js#L674
Since: 3.0.0


F6​

F6: number​

Description:

The F6 key.

Source: src/input/keyboard/keys/KeyCodes.js#L683
Since: 3.0.0


F7​

F7: number​

Description:

The F7 key.

Source: src/input/keyboard/keys/KeyCodes.js#L692
Since: 3.0.0


F8​

F8: number​

Description:

The F8 key.

Source: src/input/keyboard/keys/KeyCodes.js#L701
Since: 3.0.0


F9​

F9: number​

Description:

The F9 key.

Source: src/input/keyboard/keys/KeyCodes.js#L710
Since: 3.0.0


FIVE​

FIVE: number​

Description:

The FIVE key.

Source: src/input/keyboard/keys/KeyCodes.js#L251
Since: 3.0.0


FORWARD_SLASH​

FORWARD_SLASH: number​

Description:

The FORWARD_SLASH key.

Source: src/input/keyboard/keys/KeyCodes.js#L791
Since: 3.0.0


FOUR​

FOUR: number​

Description:

The FOUR key.

Source: src/input/keyboard/keys/KeyCodes.js#L242
Since: 3.0.0


G​

G: number​

Description:

The G key.

Source: src/input/keyboard/keys/KeyCodes.js#L458
Since: 3.0.0


H​

H: number​

Description:

The H key.

Source: src/input/keyboard/keys/KeyCodes.js#L467
Since: 3.0.0


HOME​

HOME: number​

Description:

The HOME key.

Source: src/input/keyboard/keys/KeyCodes.js#L134
Since: 3.0.0


I​

I: number​

Description:

The I key.

Source: src/input/keyboard/keys/KeyCodes.js#L476
Since: 3.0.0


INSERT​

INSERT: number​

Description:

The INSERT key.

Source: src/input/keyboard/keys/KeyCodes.js#L188
Since: 3.0.0


J​

J: number​

Description:

The J key.

Source: src/input/keyboard/keys/KeyCodes.js#L485
Since: 3.0.0


K​

K: number​

Description:

The K key.

Source: src/input/keyboard/keys/KeyCodes.js#L494
Since: 3.0.0


L​

L: number​

Description:

The L key.

Source: src/input/keyboard/keys/KeyCodes.js#L503
Since: 3.0.0


LEFT​

LEFT: number​

Description:

The LEFT key.

Source: src/input/keyboard/keys/KeyCodes.js#L143
Since: 3.0.0


M​

M: number​

Description:

The M key.

Source: src/input/keyboard/keys/KeyCodes.js#L512
Since: 3.0.0


MINUS​

MINUS: number​

Description:

The MINUS key.

Source: src/input/keyboard/keys/KeyCodes.js#L773
Since: 3.0.0


N​

N: number​

Description:

The N key.

Source: src/input/keyboard/keys/KeyCodes.js#L521
Since: 3.0.0


NINE​

NINE: number​

Description:

The NINE key.

Source: src/input/keyboard/keys/KeyCodes.js#L287
Since: 3.0.0


NUMPAD_ADD​

NUMPAD_ADD: number​

Description:

The Numpad Addition (+) key.

Source: src/input/keyboard/keys/KeyCodes.js#L386
Since: 3.21.0


NUMPAD_EIGHT​

NUMPAD_EIGHT: number​

Description:

The NUMPAD_EIGHT key.

Source: src/input/keyboard/keys/KeyCodes.js#L368
Since: 3.0.0


NUMPAD_FIVE​

NUMPAD_FIVE: number​

Description:

The NUMPAD_FIVE key.

Source: src/input/keyboard/keys/KeyCodes.js#L341
Since: 3.0.0


NUMPAD_FOUR​

NUMPAD_FOUR: number​

Description:

The NUMPAD_FOUR key.

Source: src/input/keyboard/keys/KeyCodes.js#L332
Since: 3.0.0


NUMPAD_NINE​

NUMPAD_NINE: number​

Description:

The NUMPAD_NINE key.

Source: src/input/keyboard/keys/KeyCodes.js#L377
Since: 3.0.0


NUMPAD_ONE​

NUMPAD_ONE: number​

Description:

The NUMPAD_ONE key.

Source: src/input/keyboard/keys/KeyCodes.js#L305
Since: 3.0.0


NUMPAD_SEVEN​

NUMPAD_SEVEN: number​

Description:

The NUMPAD_SEVEN key.

Source: src/input/keyboard/keys/KeyCodes.js#L359
Since: 3.0.0


NUMPAD_SIX​

NUMPAD_SIX: number​

Description:

The NUMPAD_SIX key.

Source: src/input/keyboard/keys/KeyCodes.js#L350
Since: 3.0.0


NUMPAD_SUBTRACT​

NUMPAD_SUBTRACT: number​

Description:

The Numpad Subtraction (-) key.

Source: src/input/keyboard/keys/KeyCodes.js#L395
Since: 3.21.0


NUMPAD_THREE​

NUMPAD_THREE: number​

Description:

The NUMPAD_THREE key.

Source: src/input/keyboard/keys/KeyCodes.js#L323
Since: 3.0.0


NUMPAD_TWO​

NUMPAD_TWO: number​

Description:

The NUMPAD_TWO key.

Source: src/input/keyboard/keys/KeyCodes.js#L314
Since: 3.0.0


NUMPAD_ZERO​

NUMPAD_ZERO: number​

Description:

The NUMPAD_ZERO key.

Source: src/input/keyboard/keys/KeyCodes.js#L296
Since: 3.0.0


O​

O: number​

Description:

The O key.

Source: src/input/keyboard/keys/KeyCodes.js#L530
Since: 3.0.0


ONE​

ONE: number​

Description:

The ONE key.

Source: src/input/keyboard/keys/KeyCodes.js#L215
Since: 3.0.0


OPEN_BRACKET​

OPEN_BRACKET: number​

Description:

The OPEN_BRACKET key.

Source: src/input/keyboard/keys/KeyCodes.js#L827
Since: 3.0.0


P​

P: number​

Description:

The P key.

Source: src/input/keyboard/keys/KeyCodes.js#L539
Since: 3.0.0


PAGE_DOWN​

PAGE_DOWN: number​

Description:

The PAGE_DOWN key.

Source: src/input/keyboard/keys/KeyCodes.js#L116
Since: 3.0.0


PAGE_UP​

PAGE_UP: number​

Description:

The PAGE_UP key.

Source: src/input/keyboard/keys/KeyCodes.js#L107
Since: 3.0.0


PAUSE​

PAUSE: number​

Description:

The PAUSE key.

Source: src/input/keyboard/keys/KeyCodes.js#L71
Since: 3.0.0


PERIOD​

PERIOD: number​

Description:

The PERIOD key.

Source: src/input/keyboard/keys/KeyCodes.js#L782
Since: 3.0.0


PLUS​

PLUS: number​

Description:

The PLUS key.

Source: src/input/keyboard/keys/KeyCodes.js#L755
Since: 3.0.0


Description:

The PRINT_SCREEN key.

Source: src/input/keyboard/keys/KeyCodes.js#L179
Since: 3.0.0


Q​

Q: number​

Description:

The Q key.

Source: src/input/keyboard/keys/KeyCodes.js#L548
Since: 3.0.0


QUOTES​

QUOTES: number​

Description:

The QUOTES key.

Source: src/input/keyboard/keys/KeyCodes.js#L809
Since: 3.0.0


R​

R: number​

Description:

The R key.

Source: src/input/keyboard/keys/KeyCodes.js#L557
Since: 3.0.0


RIGHT: number​

Description:

The RIGHT key.

Source: src/input/keyboard/keys/KeyCodes.js#L161
Since: 3.0.0


S​

S: number​

Description:

The S key.

Source: src/input/keyboard/keys/KeyCodes.js#L566
Since: 3.0.0


SEMICOLON​

SEMICOLON: number​

Description:

The SEMICOLON key.

Source: src/input/keyboard/keys/KeyCodes.js#L746
Since: 3.0.0


SEMICOLON_FIREFOX​

SEMICOLON_FIREFOX: number​

Description:

The SEMICOLON_FIREFOX key.

Source: src/input/keyboard/keys/KeyCodes.js#L845
Since: 3.0.0


SEVEN​

SEVEN: number​

Description:

The SEVEN key.

Source: src/input/keyboard/keys/KeyCodes.js#L269
Since: 3.0.0


SHIFT​

SHIFT: number​

Description:

The SHIFT key.

Source: src/input/keyboard/keys/KeyCodes.js#L44
Since: 3.0.0


SIX​

SIX: number​

Description:

The SIX key.

Source: src/input/keyboard/keys/KeyCodes.js#L260
Since: 3.0.0


SPACE​

SPACE: number​

Description:

The SPACE key.

Source: src/input/keyboard/keys/KeyCodes.js#L98
Since: 3.0.0


T​

T: number​

Description:

The T key.

Source: src/input/keyboard/keys/KeyCodes.js#L575
Since: 3.0.0


TAB​

TAB: number​

Description:

The TAB key.

Source: src/input/keyboard/keys/KeyCodes.js#L26
Since: 3.0.0


THREE​

THREE: number​

Description:

The THREE key.

Source: src/input/keyboard/keys/KeyCodes.js#L233
Since: 3.0.0


TWO​

TWO: number​

Description:

The TWO key.

Source: src/input/keyboard/keys/KeyCodes.js#L224
Since: 3.0.0


U​

U: number​

Description:

The U key.

Source: src/input/keyboard/keys/KeyCodes.js#L584
Since: 3.0.0


UP​

UP: number​

Description:

The UP key.

Source: src/input/keyboard/keys/KeyCodes.js#L152
Since: 3.0.0


V​

V: number​

Description:

The V key.

Source: src/input/keyboard/keys/KeyCodes.js#L593
Since: 3.0.0


W​

W: number​

Description:

The W key.

Source: src/input/keyboard/keys/KeyCodes.js#L602
Since: 3.0.0


X​

X: number​

Description:

The X key.

Source: src/input/keyboard/keys/KeyCodes.js#L611
Since: 3.0.0


Y​

Y: number​

Description:

The Y key.

Source: src/input/keyboard/keys/KeyCodes.js#L620
Since: 3.0.0


Z​

Z: number​

Description:

The Z key.

Source: src/input/keyboard/keys/KeyCodes.js#L629
Since: 3.0.0


ZERO​

ZERO: number​

Description:

The ZERO key.

Source: src/input/keyboard/keys/KeyCodes.js#L206
Since: 3.0.0