KeyHit
Category: Input
Signature
KeyHit(keyCode As Integer)
Returns
Boolean
Description
Returns True on the frame when the specified key is pressed.
The keyCode argument should be a value from Keyboard Constants.
Use KeyHit when you want a single-frame press event instead of a continuous held-down state.
Example
If KeyHit(KEY_SPACE) Then
PlayBGM("select.wav")
End If