INKEY

Function

INKEY checks the keyboard for the operation of a key.

Syntax

INKEY A

Examples

INKEY A = 65 THEN STOP

detects capital A and stops.

Remarks

The variable A is attributed the value of the key pressed. If no key is detected then the variable is equal to zero.

INKEY does not wait for a key to be pressed; execution continues immediately at the next statement.

INKEY is the faster method for obtaining the keyboard status.