Key Codes



· Lesson Index ·

These are the codes returned from the GetKey routine. They are grouped into four categories.

Primary-function
Press the key
2nd-function
Press 2nd
Alpha-function
Press ALPHA
Alpha-Alpha function
Press ALPHA twice

There are no codes for 2nd + Up or 2nd + Down, they always change the contrast.

Alpha-Alpha keys must be enabled with set LwrCaseActive, (IY + AppLwrCaseFlag). KExtendEcho2 (\$FC) is always returned in A. (KeyExtend) holds the keycode.

Primary-function keys

Key Equate Value
Y= kYEqu $49
WINDOW kWindow $48
ZOOM kZoom $2E
TRACE kTrace $5A
GRAPH kGraph $44
MODE kMode $45
DEL kDel $0A
kLeft $02
kUp $03
kRight $01
X,T,θ,n kVarX $B4
STAT kStat $31
kDown $04
MATH kMath $32
APPS kAppsMenu $2C
PRGM kPrgm $2D
VARS kVars $35
CLEAR kClear $09
x-1 kInv $86
SIN kSin $B7
COS kCos $B9
TAN kTan $BB
^ kExpon 84
x2 kSquare $BD
, kComma $8B
( kLParen $85
) kRParen $86
÷ kDiv $83
LOG kLog $C1
7 k7 $95
8 k8 $96
9 k9 $97
× kMul $82
LN kLn $BF
4 k4 $92
5 k5 $93
6 k6 $94
- kSub $81
STO→ kStore $8A
1 k1 $8F
2 k2 $90
3 k3 $91
+ kAdd $80
0 k0 $8E
. kDecPnt $8D
(-) kChs $8C
ENTER kEnter $05

Second-function keys

Key Equate Value
STAT PLOT kStatEd $43
TBLSET kTblSet $4B
FORMAT kFormat $57
CALC kCalc $3B
TABLE kTable $4A
QUIT kQuit $40
INS kIns $0B
2nd + kBOL $0E
2nd + kEOL $0F
LINK kLinkIO $41
LIST kList $3A
TEST kTest $33
ANGLE kAngle $39
DRAW kDraw $2F
DISTR kDist $38
MATRX kMatrix $37
SIN-1 kASin $B8
COS-1 kACos $BA
TAN-1 kATan $BC
π kPi $B5
kSqrt $BE
EE kEE $98
{ kLBrace $EC
} kRBrace $ED
e kCONSTeA $EF
10x kALog $C2
u kUnA $F9
v kVnA $FA
w kWnA $FB
[ kLBrack $87
ex kExp $C0
L4 kL4A $F6
L5 kL5A $F7
L6 kL6A $F8
] kRBrack $88
RCL kRecall $0C
L1 kL1A $F3
L2 kL2A $F4
L3 kL3A $F5
MEM kMem $36
OFF kOff $3F
CATALOG kCatalog $3E
i kI $EE
ANS kAns $C5
ENTRY kLastEnt $0D

Alpha-function keys

Key Equate Value
Page Up kAlphaUp $07
Page Down kAlphaDown $08
A kCapA $9A
B kCapB $9B
C kCapC $9C
D kCapD $9D
E kCapE $9E
F kCapF $9F
G kCapG $A0
H kCapH $A1
I kCapI $A2
J kCapJ $A3
K kCapK $A4
L kCapL $A5
M kCapM $A6
N kCapN $A7
O kCapO $A8
P kCapP $A9
Q kCapQ $AA
R kCapR $AB
S kCapS $AC
T kCapT $AD
U kCapU $AE
V kCapV $AF
W kCapW $B0
X kCapX $B1
Y kCapY $B2
Z kCapZ $B3
θ kThetA $CC
" kQuotE $CB
_ kSpace $99
: kColon $C6
? kQuest $CA
SOLVE kAlphaEnter $06

Alpha-Alpha-function keys

Key Equate Value
a kLa $E2
b kLb $E3
c kLc $E4
d kLd $E5
e kLe $E6
f kLf $E7
g kLg $E8
h kLh $E9
i kLi $EA
j kLj $EB
k kLk $EC
l kLl $ED
m kLm $EE
n kLSmalln $EF
o kLo $F0
p kLp $F1
q kLq $F2
r kLSmallr $F3
s kLs $F4
t kLt $F5
u kLu $F6
v kLv $F7
w kLw $F8
x kLx $F9
y kLy $FA
z kLz $FB