The LazyBoy Library Manual - KeyRead

Part of the Keyboard group.

%imacro KeyRead 1
Prefers: AX

Wait for and read a keystroke.

The program will pause until a key is pressed. It will then return the value of the keystroke in the parameter.

Examples:

    KeyRead ax          ; get keystroke and store in AX
    KeyRead [di]        ; get  keystroke and store it in [ds:di]

See also: KeyPressed, KeyWait, KeyPreview and KeyShiftState.