8-5-15

Command Reference

kInput/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

Code

1

79

2

69

3

59

4

49

5

39

6

29

!

78

K

68

J

58

m

48

a

77

x

67

M

57

J

47

f

28

c

37

d

38

e

27

v

76

l

66

I

56

s

46

c

36

t

26

$

75

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

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.

20070201