
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
976
|
Appendix B: Latin 1 Character Repertoire and Keycodes
Table B-2 lists the keycodes for selected special keys on the keyboard. These key-
codes are used only with the Key object. See Table R-8 (under the Key object in the
Language Reference) for an alphabetical listing of the special properties.
Table B-2. Key object special keycodes
Key Keycode Property Key Keycode
Backspace 8 Key.BACKSPACE Num Pad 9 105
Tab 9 Key.TAB Num Pad * 106
Enter 13 Key.ENTER Num Pad + 107
Shift 16 Key.SHIFT Num Pad Enter 13 (not trappableas 108)
Control 17 Key.CONTROL Num Pad – 109
Alt 18 (not trappable) Num Pad . 110
Pause/Break 19 Num Pad / 111
Caps Lock 20 Key.CAPSLOCK F1 112
Escape 27 Key.ESCAPE F2 113
Space 32 Key.SPACE F3 114
Page Up 33 Key.PGUP F4 115
Page Down 34 Key.PGDN F5 116
End 35 Key.END F6 117
Home 36 Key.HOME F7 118
Left arrow 37 Key.LEFT F8 119
Up Arrow 38 Key.UP F9 120
Right Arrow 39 Key.RIGHT F10 121 (not trappable)
Down arrow 40 Key.DOWN F11 122
Print Screen 44 F12 123
Insert 45 Key.INSERT Num Lock 144
Delete 46 Key.DELETEKEY Scroll Lock 145
Num Pad 0 96 ; : 186
Num Pad 1 97 + = 187
Num Pad 2 98 – _ 189
Num Pad 3 99 / ? 191
Num Pad 4 100 ` ~ 192
Num Pad 5 101 [ { 219
Num Pad 6 102 \ | 220
Num Pad 7 103 ] } 221
Num Pad 8 104 " ' 222