Skip to main content
Version: Phaser v4.0.0

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#L410
Since: 3.0.0


ALT

ALT: number

Description:

The ALT key.

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


B

B: number

Description:

The B key.

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


BACK_SLASH

BACK_SLASH: number

Description:

The BACK_SLASH key.

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


BACKSPACE

BACKSPACE: number

Description:

The BACKSPACE key.

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


BACKTICK

BACKTICK: number

Description:

The BACKTICK key.

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


BRACKET_LEFT_FIREFOX

BRACKET_LEFT_FIREFOX: number

Description:

The Firefox-specific alternate key code for the left bracket ([) key. Firefox historically reported key code 175 for this key, whereas other browsers use 219 (see OPEN_BRACKET).

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


BRACKET_RIGHT_FIREFOX

BRACKET_RIGHT_FIREFOX: number

Description:

The Firefox-specific alternate key code for the right bracket (]) key. Firefox historically reported key code 174 for this key, whereas other browsers use 221 (see CLOSED_BRACKET).

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


C

C: number

Description:

The C key.

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


CAPS_LOCK

CAPS_LOCK: number

Description:

The CAPS_LOCK key.

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


CLOSED_BRACKET

CLOSED_BRACKET: number

Description:

The CLOSED_BRACKET key.

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


COLON

COLON: number

Description:

The COLON (:) key.

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


COMMA

COMMA: number

Description:

The COMMA key.

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


COMMA_FIREFOX

COMMA_FIREFOX: number

Description:

The Firefox-specific alternate key code for the greater-than sign (>) key.

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


COMMA_FIREFOX_WINDOWS

COMMA_FIREFOX_WINDOWS: number

Description:

The Firefox on Windows-specific alternate key code for the less-than sign (<) key.

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


CTRL

CTRL: number

Description:

The CTRL key.

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


D

D: number

Description:

The D key.

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


DELETE

DELETE: number

Description:

The DELETE key.

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


DOWN

DOWN: number

Description:

The DOWN key.

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


E

E: number

Description:

The E key.

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


EIGHT

EIGHT: number

Description:

The EIGHT key.

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


END

END: number

Description:

The END key.

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


ENTER

ENTER: number

Description:

The ENTER key.

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


ESC

ESC: number

Description:

The ESC key.

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


F

F: number

Description:

The F key.

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


F1

F1: number

Description:

The F1 key.

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


F10

F10: number

Description:

The F10 key.

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


F11

F11: number

Description:

The F11 key.

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


F12

F12: number

Description:

The F12 key.

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


F2

F2: number

Description:

The F2 key.

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


F3

F3: number

Description:

The F3 key.

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


F4

F4: number

Description:

The F4 key.

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


F5

F5: number

Description:

The F5 key.

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


F6

F6: number

Description:

The F6 key.

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


F7

F7: number

Description:

The F7 key.

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


F8

F8: number

Description:

The F8 key.

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


F9

F9: number

Description:

The F9 key.

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


FIVE

FIVE: number

Description:

The FIVE key.

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


FORWARD_SLASH

FORWARD_SLASH: number

Description:

The FORWARD_SLASH key.

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


FOUR

FOUR: number

Description:

The FOUR key.

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


G

G: number

Description:

The G key.

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


H

H: number

Description:

The H key.

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


HOME

HOME: number

Description:

The HOME key.

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


I

I: number

Description:

The I key.

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


INSERT

INSERT: number

Description:

The INSERT key.

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


J

J: number

Description:

The J key.

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


K

K: number

Description:

The K key.

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


L

L: number

Description:

The L key.

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


LEFT

LEFT: number

Description:

The LEFT key.

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


M

M: number

Description:

The M key.

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


MINUS

MINUS: number

Description:

The MINUS key.

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


N

N: number

Description:

The N key.

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


NINE

NINE: number

Description:

The NINE key.

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


NUMPAD_ADD

NUMPAD_ADD: number

Description:

The Numpad Addition (+) key.

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


NUMPAD_EIGHT

NUMPAD_EIGHT: number

Description:

The numeric keypad 8 key.

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


NUMPAD_FIVE

NUMPAD_FIVE: number

Description:

The numeric keypad 5 key.

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


NUMPAD_FOUR

NUMPAD_FOUR: number

Description:

The numeric keypad 4 key.

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


NUMPAD_NINE

NUMPAD_NINE: number

Description:

The numeric keypad 9 key.

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


NUMPAD_ONE

NUMPAD_ONE: number

Description:

The numeric keypad 1 key.

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


NUMPAD_SEVEN

NUMPAD_SEVEN: number

Description:

The numeric keypad 7 key.

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


NUMPAD_SIX

NUMPAD_SIX: number

Description:

The numeric keypad 6 key.

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


NUMPAD_SUBTRACT

NUMPAD_SUBTRACT: number

Description:

The Numpad Subtraction (-) key.

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


NUMPAD_THREE

NUMPAD_THREE: number

Description:

The numeric keypad 3 key.

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


NUMPAD_TWO

NUMPAD_TWO: number

Description:

The numeric keypad 2 key.

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


NUMPAD_ZERO

NUMPAD_ZERO: number

Description:

The numeric keypad 0 key.

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


O

O: number

Description:

The O key.

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


ONE

ONE: number

Description:

The ONE key.

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


OPEN_BRACKET

OPEN_BRACKET: number

Description:

The OPEN_BRACKET key.

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


P

P: number

Description:

The P key.

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


PAGE_DOWN

PAGE_DOWN: number

Description:

The PAGE_DOWN key.

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


PAGE_UP

PAGE_UP: number

Description:

The PAGE_UP key.

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


PAUSE

PAUSE: number

Description:

The PAUSE key.

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


PERIOD

PERIOD: number

Description:

The PERIOD key.

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


PLUS

PLUS: number

Description:

The PLUS key.

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


Description:

The PRINT_SCREEN key.

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


Q

Q: number

Description:

The Q key.

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


QUOTES

QUOTES: number

Description:

The QUOTES key.

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


R

R: number

Description:

The R key.

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


RIGHT: number

Description:

The RIGHT key.

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


S

S: number

Description:

The S key.

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


SEMICOLON

SEMICOLON: number

Description:

The SEMICOLON key.

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


SEMICOLON_FIREFOX

SEMICOLON_FIREFOX: number

Description:

The Firefox-specific alternate key code for the SEMICOLON (;) key. Firefox historically reported key code 59 for this key, whereas other browsers use 186 (see SEMICOLON).

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


SEVEN

SEVEN: number

Description:

The SEVEN key.

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


SHIFT

SHIFT: number

Description:

The SHIFT key.

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


SIX

SIX: number

Description:

The SIX key.

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


SPACE

SPACE: number

Description:

The SPACE key.

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


T

T: number

Description:

The T key.

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


TAB

TAB: number

Description:

The TAB key.

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


THREE

THREE: number

Description:

The THREE key.

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


TWO

TWO: number

Description:

The TWO key.

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


U

U: number

Description:

The U key.

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


UP

UP: number

Description:

The UP key.

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


V

V: number

Description:

The V key.

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


W

W: number

Description:

The W key.

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


X

X: number

Description:

The X key.

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


Y

Y: number

Description:

The Y key.

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


Z

Z: number

Description:

The Z key.

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


ZERO

ZERO: number

Description:

The ZERO key.

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