Category: Input
KeyDown(keyCode As Integer)
Boolean
Returns True while the specified key is currently pressed.
The keyCode argument should be a value from Keyboard Constants.
Use KeyHit when you want a single-frame press event instead of a held-down state.
If KeyDown(KEY_ESC) Then
End
End If