Skip to content

KeyCodes

Key codes All key values mapped to string names. eNum KeyCodes

Enumeration Members

A

A: 65

Source

src/input/KeyCodes.ts:39


ALT

ALT: 18

Source

src/input/KeyCodes.ts:12


B

B: 66

Source

src/input/KeyCodes.ts:40


BACKSPACE

BACKSPACE: 8

Source

src/input/KeyCodes.ts:7


BACK_SLASH

BACK_SLASH: 220

Source

src/input/KeyCodes.ts:109


C

C: 67

Source

src/input/KeyCodes.ts:41


CAPS_LOCK

CAPS_LOCK: 20

Source

src/input/KeyCodes.ts:14


CLOSE_BRACKET

CLOSE_BRACKET: 221

Source

src/input/KeyCodes.ts:110


COMMA

COMMA: 188

Source

src/input/KeyCodes.ts:103


CTRL

CTRL: 17

Source

src/input/KeyCodes.ts:11


D

D: 68

Source

src/input/KeyCodes.ts:42


DASH

DASH: 189

Source

src/input/KeyCodes.ts:104


DELETE

DELETE: 46

Source

src/input/KeyCodes.ts:26


DOWN

DOWN: 40

Source

src/input/KeyCodes.ts:24


E

E: 69

Source

src/input/KeyCodes.ts:43


EIGHT

EIGHT: 56

Source

src/input/KeyCodes.ts:36


END

END: 35

Source

src/input/KeyCodes.ts:19


ENTER

ENTER: 13

Source

src/input/KeyCodes.ts:9


EQUALS

EQUALS: 187

Source

src/input/KeyCodes.ts:102


ESC

ESC: 27

Source

src/input/KeyCodes.ts:15


F

F: 70

Source

src/input/KeyCodes.ts:44


F1

F1: 112

Source

src/input/KeyCodes.ts:86


F10

F10: 121

Source

src/input/KeyCodes.ts:95


F11

F11: 122

Source

src/input/KeyCodes.ts:96


F12

F12: 123

Source

src/input/KeyCodes.ts:97


F2

F2: 113

Source

src/input/KeyCodes.ts:87


F3

F3: 114

Source

src/input/KeyCodes.ts:88


F4

F4: 115

Source

src/input/KeyCodes.ts:89


F5

F5: 116

Source

src/input/KeyCodes.ts:90


F6

F6: 117

Source

src/input/KeyCodes.ts:91


F7

F7: 118

Source

src/input/KeyCodes.ts:92


F8

F8: 119

Source

src/input/KeyCodes.ts:93


F9

F9: 120

Source

src/input/KeyCodes.ts:94


FIVE

FIVE: 53

Source

src/input/KeyCodes.ts:33


FORWARD_SLASH

FORWARD_SLASH: 191

Source

src/input/KeyCodes.ts:106


FOUR

FOUR: 52

Source

src/input/KeyCodes.ts:32


G

G: 71

Source

src/input/KeyCodes.ts:45


GRAVE

GRAVE: 192

Source

src/input/KeyCodes.ts:107


H

H: 72

Source

src/input/KeyCodes.ts:46


HOME

HOME: 36

Source

src/input/KeyCodes.ts:20


I

I: 73

Source

src/input/KeyCodes.ts:47


INSERT

INSERT: 45

Source

src/input/KeyCodes.ts:25


J

J: 74

Source

src/input/KeyCodes.ts:48


K

K: 75

Source

src/input/KeyCodes.ts:49


L

L: 76

Source

src/input/KeyCodes.ts:50


LEFT

LEFT: 37

Source

src/input/KeyCodes.ts:21


M

M: 77

Source

src/input/KeyCodes.ts:51


N

N: 78

Source

src/input/KeyCodes.ts:52


NINE

NINE: 57

Source

src/input/KeyCodes.ts:37


NUMPAD_0

NUMPAD_0: 96

Source

src/input/KeyCodes.ts:70


NUMPAD_1

NUMPAD_1: 97

Source

src/input/KeyCodes.ts:71


NUMPAD_2

NUMPAD_2: 98

Source

src/input/KeyCodes.ts:72


NUMPAD_3

NUMPAD_3: 99

Source

src/input/KeyCodes.ts:73


NUMPAD_4

NUMPAD_4: 100

Source

src/input/KeyCodes.ts:74


NUMPAD_5

NUMPAD_5: 101

Source

src/input/KeyCodes.ts:75


NUMPAD_6

NUMPAD_6: 102

Source

src/input/KeyCodes.ts:76


NUMPAD_7

NUMPAD_7: 103

Source

src/input/KeyCodes.ts:77


NUMPAD_8

NUMPAD_8: 104

Source

src/input/KeyCodes.ts:78


NUMPAD_9

NUMPAD_9: 105

Source

src/input/KeyCodes.ts:79


NUMPAD_ADD

NUMPAD_ADD: 107

Source

src/input/KeyCodes.ts:81


NUMPAD_DECIMAL

NUMPAD_DECIMAL: 110

Source

src/input/KeyCodes.ts:83


NUMPAD_DIVIDE

NUMPAD_DIVIDE: 111

Source

src/input/KeyCodes.ts:84


NUMPAD_MULT

NUMPAD_MULT: 106

Source

src/input/KeyCodes.ts:80


NUMPAD_SUBTRACT

NUMPAD_SUBTRACT: 109

Source

src/input/KeyCodes.ts:82


NUM_LOCK

NUM_LOCK: 144

Source

src/input/KeyCodes.ts:99


O

O: 79

Source

src/input/KeyCodes.ts:53


ONE

ONE: 49

Source

src/input/KeyCodes.ts:29


OPEN_BRACKET

OPEN_BRACKET: 219

Source

src/input/KeyCodes.ts:108


OS_LEFT

OS_LEFT: 91

Source

src/input/KeyCodes.ts:66


OS_RIGHT

OS_RIGHT: 92

Source

src/input/KeyCodes.ts:67


P

P: 80

Source

src/input/KeyCodes.ts:54


PAGE_DOWN

PAGE_DOWN: 34

Source

src/input/KeyCodes.ts:18


PAGE_UP

PAGE_UP: 33

Source

src/input/KeyCodes.ts:17


PAUSE_BREAK

PAUSE_BREAK: 19

Source

src/input/KeyCodes.ts:13


PERIOD

PERIOD: 190

Source

src/input/KeyCodes.ts:105


Q

Q: 81

Source

src/input/KeyCodes.ts:55


R

R: 82

Source

src/input/KeyCodes.ts:56


RIGHT: 39

Source

src/input/KeyCodes.ts:23


S

S: 83

Source

src/input/KeyCodes.ts:57


SCROLL_LOCK

SCROLL_LOCK: 145

Source

src/input/KeyCodes.ts:100


SELECT

SELECT: 93

Source

src/input/KeyCodes.ts:68


SEMI_COLON

SEMI_COLON: 186

Source

src/input/KeyCodes.ts:101


SEVEN

SEVEN: 55

Source

src/input/KeyCodes.ts:35


SHIFT

SHIFT: 16

Source

src/input/KeyCodes.ts:10


SINGLE_QUOTE

SINGLE_QUOTE: 222

Source

src/input/KeyCodes.ts:111


SIX

SIX: 54

Source

src/input/KeyCodes.ts:34


SPACEBAR

SPACEBAR: 32

Source

src/input/KeyCodes.ts:16


T

T: 84

Source

src/input/KeyCodes.ts:58


TAB

TAB: 9

Source

src/input/KeyCodes.ts:8


THREE

THREE: 51

Source

src/input/KeyCodes.ts:31


TWO

TWO: 50

Source

src/input/KeyCodes.ts:30


U

U: 85

Source

src/input/KeyCodes.ts:59


UP

UP: 38

Source

src/input/KeyCodes.ts:22


V

V: 86

Source

src/input/KeyCodes.ts:60


W

W: 87

Source

src/input/KeyCodes.ts:61


X

X: 88

Source

src/input/KeyCodes.ts:62


Y

Y: 89

Source

src/input/KeyCodes.ts:63


Z

Z: 90

Source

src/input/KeyCodes.ts:64


ZERO

ZERO: 48

Source

src/input/KeyCodes.ts:28