The GEMDOS function Cconin(), and the
BIOS function Bconin() (when used to read the console de
vice keyboard), both return a two-byte keycode, which is ex
tended into a longword. The first byte of the keycode, which
is found in the second byte of the longword, is usually a
unique key identifier that refers to the physical key that was
struck, regardless of shift-key combinations. The second
byte, which is found in the last byte of the longword, is usu
ally the ASCII value of the key combination, which does de
pend on the state of the shift keys (Shift, Control, and Alter
nate). The following table shows the keycodes, as four-digit
hexadecimal numbers, for all key and shift combinations.
Unshifted
Shift
CTRL
ALT
a
1E61
A
1E41 1E01
1E00
b
3062
B
3042
3002
3000
c 2E63 C
2E43 2E03 2E00
d 2064 D
2044
2004
2000
e
1265
E
1245 1205 1200
f
2166
F
2146
2106 2100
g
2267 G 2247 2207
2200
h
2368
H
2348
2308
2300
i
1769
I
1749 1709 1700
j
246A
J
244A 240A
2400
k 256B K
254B
250B
2500
1
266C
L
264C 260C 2600
m 326D M 324D
320D
3200
n 316E
N 314E
310E
3100
0
186F
O 184F
180F
1800
P
1970
P
1950 1910 1900
q
1071
Q
1051
1011
1000
r
1372
R 1352
1312
1300
s
1F73
S
1F53
1F13
1F00
t 1474 T
1454
1414
1400
383