Key Code Names

Any one of these names can be used to declare a method to handle a particular key event. Just use the method name "on" + code + "Press" (or "Release"), where code is any of the following names. This method is void and has no parameters.


Enter
Back_space
Tab
Cancel
Clear
Shift
Control
Alt
Pause
Caps_lock
Escape
Space
Page_up
Page_down
End
Home
Left
Up
Right
Down
Comma
Minus
Period
Slash
0
1
2
3
4
5
6
7
8
9
Semicolon
Equals
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Open_bracket
Back_slash
Close_bracket
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
Multiply
Add
Separater
Separator
Subtract
Decimal
Divide
Delete
Num_lock
Scroll_lock
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
Printscreen
Insert
Help
Meta
Back_quote
Quote
Kp_up
Kp_down
Kp_left
Kp_right
Dead_grave
Dead_acute
Dead_circumflex
Dead_tilde
Dead_macron
Dead_breve
Dead_abovedot
Dead_diaeresis
Dead_abovering
Dead_doubleacute
Dead_caron
Dead_cedilla
Dead_ogonek
Dead_iota
Dead_voiced_sound
Dead_semivoiced_sound
Ampersand
Asterisk
Quotedbl
Less
Greater
Braceleft
Braceright
At
Colon
Circumflex
Dollar
Euro_sign
Exclamation_mark
Inverted_exclamation_mark
Left_parenthesis
Number_sign
Plus
Right_parenthesis
Underscore
Final
Convert
Nonconvert
Accept
Modechange
Kana
Kanji
Alphanumeric
Katakana
Hiragana
Full_width
Half_width
Roman_characters
All_candidates
Previous_candidate
Code_input
Japanese_katakana
Japanese_hiragana
Japanese_roman
Kana_lock
Input_method_on_off
Cut
Copy
Paste
Undo
Again
Find
Props
Stop
Compose
Alt_graph
Undefined