

Determine if a key has been pressed and store this in a variable.

If no key has been pressed, the program should continue without waiting.




Public Sub Form_KeyPress()
 
'Requires a TextBox or similar on the Form to work
Print Key.Text;
 
End