Description \ r
0x1 left mouse button \ r
0x2 right-click \ r
0x3 cancel key \ r
0x4 middle mouse buttons \ r
0x8 backspace key \ r
0x9 Tab key \ r
0xc clear key \ r
0xd enter key \ r
0x10 shift key \ r
0x11 ctrl key \ r
0x12 menu key \ r
0x13 pause key \ r
0x14 Caps Lock key \ r
0x1b ESC key \ r
0x20 spacebar key \ r
0x21 page up key \ r
0x22 page down key \ r
0x23 end key \ r
0x24 home key \ r
0x25 left arrow key \ r
0x26 up arrow key \ r
0x27 right arrow key \ r
0x28 down arrow key \ r
0x29 select key \ r
0x2a print screen key \ r
0x2b execute key \ r
0x2c snapshot key \ r
0x2d Insert key \ r
0x2e delete key \ r
0x2f help key \ r
0x90 Num Lock key \ r
The a-z key and a-Z letter have the same ASCII code:
Value description \ r
65 A key \ r
66 B key \ r
67 C key \ r
68 d key \ r
69 e key \ r
70 f key \ r
71g key \ r
72 h key \ r
73 I key \ r
74 J key \ r
75 K key \ r
76 l key \ r
77 m key \ r
78 N key \ r
79 o key \ r
80 p key \ r
81 Q key \ r
82 r key \ r
83 s key \ r
84 t key \ r
85 U key \ r
86 V key \ r
87 W key \ r
88 X key \ r
89 y key \ r
90 z key \ r
The key 0 to 9 is the same as the ASCII code of the number 0-9:
Value description \ r
48 0 Key \ r
49 1 key \ r
50 2 keys \ r
51 3 key \ r
52 4 key \ r
53 5 key \ r
54 6 keys \ r
55 7 key \ r
56 8 keys \ r
57 9 Key \ r
The following constants represent keys on the numeric keypad:
Value description \ r
0x60 0 Key \ r
0x61 1 key \ r
0x62 2 key \ r
0x63 3 key \ r
0x64 4 key \ r
0x65 5 Keys \ r
0x66 6 keys \ r
0x67 7 Keys \ r
0x68 8 keys \ r
0x69 9 Key \ r
0x6a multiplication sign (*) Key \ r
0x6b plus sign (+) Key \ r
0x6c enter key \ r
0x6d minus sign (-) Key \ r
0x6e decimal point (.) Key \ r
0x6f division sign (/) Key \ r
The following constants represent the function keys:
Value description \ r
0x70 F1 key \ r
0x71 F2 key \ r
0x72 F3 key \ r
0x73 F4 key \ r
0x74 F5 key \ r
0x75 F6 key \ r
0x76 F7 key \ r
0x77 F8 key \ r
0x78 F9 key \ r
0x79 F10 key \ r
0x7a F11 key \ r
0x7b F12 key \ r
0x7c f13 key \ r
0x7d F14 key \ r
0x7e F15 key \ r
0x7f F16 key \ r
Example: Number
If (event. keycode <48 | event. keycode> 57) {This. value = xxxx ;}