k Input/Output Commands (I/O)
Getkey
Function: This command returns the code that corresponds to the last key pressed.
Syntax: Getkey
Description:
• This command returns the code that corresponds to the last key pressed.
Key
1
2
3
4
5
6
!
K
J
m
a
x
M
J
f
c
d
e
v
l
I
s
c
t
$
• A value of zero is returned if no key was pressed previous to executing this command.
• This command can be used inside of a loop.
8-5-15
Command Reference
Code
79
69
59
49
39
29
78
68
58
48
77
67
57
47
28
37
38
27
76
66
56
46
36
26
75
20070201
Key
Code
M
65
(
55
)
45
,
35
a
25
D
44
.
61
a
71
b
72
c
62
d
52
e
73
f
63
g
53
h
74
i
64
j
54
-
41
+
42
-
32
*
43
/
33
E
51
w
31