

Description:
LAST_KEY returns the keyname of the last key pressed. Executed keys include
keys in a learn sequence or keys bound to the procedure currently executing.
Zero is returned if /NO_DISPLAY is active.
Syntax:
keyword := LAST_KEY
Example:
The following ties a learn sequence to the key pressed in response to the
READ_LINE prompt. The READ_LINE return value is not used in the learn assignment.
The LAST_KEY builtin is used to get the keyname definition.
PROCEDURE END_USER_LEARN
MY$SEQ := LEARN_END;
KEY := READ_LINE ("Press key for learn.", 1);
LEARN$KEY := LAST_KEY;
DEFINE_KEY (MY$SEQ, LEARN$KEY);
ENDPROCEDURE
Related Builtins:
LAST_KEY