KbHit( )

Action: Checks the console for keyboard input.
 
Syntax: KBHIT ( )
  
Returns:

<>0

Keystroke waiting in keyboard buffer.

0

No keystroke in keyboard buffer. 
 

See Also: Get, Sleep
 
Example:

If KbHit()
  Get $x ; grab the keystroke from the buffer
Endif