Document Title

OpenTuring

Key Codes

Ordinal values of keystrokes returned by getch and getchar.

 0 (space)32 @64 `96
Ctrl-A1!33A65a97
Ctrl-B2"34B66b98
Ctrl-C3#35C67c99
Ctrl-D4$36D68d100
Ctrl-E5%37E69e101
Ctrl-F6&38F70f102
Ctrl-G7'39G71g103
Ctrl-H / BS8(40H72h104
Ctrl-I / Tab9)41I73i105
Ctrl-J / Enter10*42J74j106
Ctrl-K11+43K75k107
Ctrl-L12,44L76l108
Ctrl-M13-45M77m109
Ctrl-N14.46N78n110
Ctrl-O15/47O79o111
Ctrl-P16048P80p112
Ctrl-Q17149Q81q113
Ctrl-R18250R82r114
Ctrl-S19351S83s115
Ctrl-T20452T84t116
Ctrl-U21553U85u117
Ctrl-V22654V86v118
Ctrl-W23755W87w119
Ctrl-X24856X88x120
Ctrl-Y25957Y89y121
Ctrl-Z26:58Z90z122
Ctrl-[ / Esc27;59[91{123
Ctrl-\28<60\92|124
Ctrl-]29=61]93}125
Ctrl-^30>62^94~126
Ctrl-_31?63_95Ctrl-BS127
 
Alt-9128 Alt-D160 F6192 Ctrl-F3224
Alt-0129Alt-F161F7193Ctrl-F4225
Alt--130Alt-G162F8194Ctrl-F5226
Alt-=131Alt-H163F9195Ctrl-F6227
Ctrl-PgUp132Alt-J164F10196Ctrl-F7228
F11133Alt-K165 197Ctrl-F8229
F12134Alt-L166 198Ctrl-F9230
Shift-F11135 167Home199Ctrl-F10231
Shift-F12136 168Up Arrow200Alt-F1232
Ctrl-F11137 169PgUp201Alt-F2233
Ctrl-F12138 170 202Alt-F3234
Alt-F11139 171Left Arrow203Alt-F4235
Alt-F12140Alt-Z172 204Alt-F5236
Ctrl-Up Arrow141Alt-X173Right Arrow205Alt-F6237
 142Alt-C174 206Alt-F7238
Back Tab143Alt-V175End207Alt-F8239
Alt-Q144Alt-B176Down Arrow208Alt-F9240
Ctrl-Down Arrow145Alt-N177PgDn209Alt-F10241
Ctrl-Insert146Alt-M178Insert210 242
Ctrl-Delete147 179Delete211Ctrl-Left Arrow243
Alt-T148 180Shift-F1212Ctrl-Right Arrow244
Alt-Y149 181Shift-F2213Ctrl-End245
Alt-U150 182Shift-F3214Ctrl-PgDn246
Alt-I151 183Shift-F4215Ctrl-Home247
Alt-O152 184Shift-F5216Alt-1248
Alt-P153 185Shift-F6217Alt-2249
 154 186Shift-F7218Alt-3250
 155F1187Shift-F8219Alt-4251
 156F2188Shift-F9220Alt-5252
 157F3189Shift-F10221Alt-6253
Alt-A158F4190Ctrl-F1222Alt-7254
Alt-S159F5191Ctrl-F2223Alt-8225

Ordinal values of characters that are set by Input.KeyDown.

Backspace8 (space)32 @64 `96
Tab9!33A65a97
Enter10!34B66b98
Escape27#35C67c99
 $36D68d100
F11133%37E69e101
F12134&38F70f102
Shift180'39G71g103
Control181(40H72h104
Alt182)41I73i105
Keypad 5183*42J74j106
F1187+43K75k107
F2188,44L76l108
F3189-45M77m109
F4190.46N78n110
F5191/47O79o111
F6192048P80p112
F7193149Q81q113
F8194250R82r114
F9195351S83s115
F10196452T84t116
 553U85u117
Home199654V86v118
Up Arrow200755W87w119
PgUp201856X88x120
Left Arrow203957Y89y121
Right Arrow205:58Z90z122
End207;59[91{123
Down Arrow208<60\92|124
PgDn209=61]93}125
Insert210>62^94~126
Delete211?63_95