Category: Input
KeyHit(keyCode As Integer)
Boolean
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.
If KeyHit(KEY_SPACE) Then
PlayBGM("select.wav")
End If