Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
KEY Statements (Event Trapping)
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
KEY(n%) ON
KEY(n%) OFF
KEY(n%) STOP
■ n% An integer expression; the number of a function
key, a direction key, or a user-defined key.
■ KEY(n%) ON Enables function key, direction key, or user-defined
key event trapping.
■ KEY(n%) OFF Disables the event trap. Even if an event takes place,
it is not remembered.
■ KEY(n%) STOP Suspends the event trap. If you press the specified
key, your action is remembered and trapped as soon as
a KEY ON statement is executed.
See Also ◄KEY (Assignment)► ◄ON KEY►