KeyCode

Key code constants for KeyEvent

Values

ValueMeaning
NONE0
BACK8

backspace

TAB9

tab

RETURN0x0D

return / enter key

SHIFT0x10

shift

CONTROL0x11

ctrl

ALT0x12

alt

PAUSE0x13

pause

CAPS0x14

caps lock

ESCAPE0x1B

esc

SPACE0x20

space

PAGEUP0x21

page up

PAGEDOWN0x22

page down

END0x23

end

HOME0x24

home

LEFT0x25

left arrow

UP0x26

up arrow

DOWN0x28

down arrow

INS0x2D

ins

DEL0x2E

delete

KEY_00x30

0

KEY_10x31

1

KEY_20x32

2

KEY_30x33

3

KEY_40x34

4

KEY_50x35

5

KEY_60x36

6

KEY_70x37

7

KEY_80x38

8

KEY_90x39

9

KEY_A0x41

A

KEY_B0x42

B

KEY_C0x43

C

KEY_D0x44

D

KEY_E0x45

E

KEY_F0x46

F

KEY_G0x47

G

KEY_H0x48

H

KEY_I0x49

I

KEY_J0x4a

J

KEY_K0x4b

K

KEY_L0x4c

L

KEY_M0x4d

M

KEY_N0x4e

N

KEY_O0x4f

O

KEY_P0x50

P

KEY_Q0x51

Q

KEY_R0x52

R

KEY_S0x53

S

KEY_T0x54

T

KEY_U0x55

U

KEY_V0x56

V

KEY_W0x57

W

KEY_X0x58

X

KEY_Y0x59

Y

KEY_Z0x5a

Z

KEY_BRACKETOPEN0xDB

[

KEY_BRACKETCLOSE0xDD

]

KEY_DIVIDE0x6F

key /

KEY_ADD0x6B

key +

KEY_MULTIPLY0x6A

key *

KEY_COMMA0xBC

key ,

KEY_PERIOD0xBE

key .

KEY_SUBTRACT0x6D

key -

LWIN0x5b

left win key

RWIN0x5c

right win key

NUM_00x60

numpad 0

NUM_10x61

numpad 1

NUM_20x62

numpad 2

NUM_30x63

numpad 3

NUM_40x64

numpad 4

NUM_50x65

numpad 5

NUM_60x66

numpad 6

NUM_70x67

numpad 7

NUM_80x68

numpad 8

NUM_90x69

numpad 9

MUL0x6A

numpad *

ADD0x6B

numpad +

DIV0x6F

numpad /

SUB0x6D

numpad -

DECIMAL0x6E

numpad .

F10x70

F1

F20x71

F2

F30x72

F3

F40x73

F4

F50x74

F5

F60x75

F6

F70x76

F7

F80x77

F8

F90x78

F9

F100x79

F10

F110x7a

F11

F120x7b

F12

F130x7c

F13

F140x7d

F14

F150x7e

F15

F160x7f

F16

F170x80

F17

F180x81

F18

F190x82

F19

F200x83

F20

F210x84

F21

F220x85

F22

F230x86

F23

F240x87

F24

NUMLOCK0x90

num lock

SCROLL0x91

scroll lock

LSHIFT0xA0

left shift

RSHIFT0xA1

right shift

LCONTROL0xA2

left ctrl

RCONTROL0xA3

right ctrl

LALT0xA4

left alt

RALT0xA5

right alt

SEMICOLON0x201

;

TILDE0x202

~

QUOTE0x203

'

SLASH0x204

/

BACKSLASH0x205

\

EQUAL0x206

=

Meta