Table of Contents


Appendix K
KEYBOARD CODE TABLE

This is a table of common keyboard code values that are returned to a program when it requests keyboard input data. If this is a BIOS call, the values are returned to the program in register AL unless the value of AL is zero. The values with 0: are extended code values with data in AH. If this is a DOS call and you receive a zero value, you must make another DOS call to get the extended code value.

Key Code SHIFT CTRL ALT
code code code
A 97 65 1 0:30
B 98 66 2 0:48
C 99 67 3 0:46
D 100 68 4 0:32
E 101 69 5 0:18
F 102 70 6 0:33
G 103 71 7 0:34
H 104 72 8 0:35
I 105 73 9 0:23
J 106 74 10 0:36
K 107 75 11 0:37
L 108 76 12 0:38
M 109 77 13 0:50
N 110 78 14 0:49
O 111 79 15 0:24
P 112 80 16 0:25
Q 113 81 17 0:16
R 114 82 18 0:19
S 115 83 19 0:31
T 116 84 20 0:20
U 117 85 21 0:22
V 118 86 22 0:47
W 119 87 23 0:17
X 120 88 24 0:45
Y 121 89 25 0:21
Z 122 90 26 0:44
 
1 49 33
2 50 64 0
3 51 35
4 52 36
5 53 37
6 54 94 30
7 55 38
8 56 42
9 57 40
0 48 41
- 45 95 31
= 61 43
[ 91 123 27
] 93 125 29
\ 92 124 28
; 59 58
39 34
, 44 60
. 46 62
/ 47 63
96 126
 
F1 0:59 0:84 0:94 0:104
F2 0:60 0:85 0:95 0:105
F3 0:61 0:86 0:96 0:106
F4 0:62 0:87 0:97 0:107
F5 0:63 0:88 0:98 0:108
F6 0:64 0:89 0:99 0:109
F7 0:65 0:90 0:100 0:110
F8 0:66 0:91 0:101 0:111
F9 0:67 0:92 0:102 0:112
F10 0:68 0:93 0:103 0:113
F11 0:133 0:135 0:137 0:139
F12 0:134 0:136 0:138 0:140
 
Key Code
HOME 0:71
END 0:79
DOWN ARROW 0:80
UP ARROW 0:72
LEFT ARROW 0:75
RIGHT ARROW 0:77
PAGE UP 0:73
PAGE DOWN 0:81
INSERT 0:82
DELETE 0:83


Table of Contents