keystate()
From Wiki077
float keystate (string key)
This function will return the current state of the key. Return values are 1 or 0, with 1 meaning the key is pressed, 0 meaning it is not. key can be:
-
AthroughZ, andathroughz -
0through9 -
space -
enter -
left -
right -
up -
down -
shift -
alt -
ctrl -
F1throughF12
Note: All parameters to this function are case insensitive. For example keystate("a") always returns the same value as keystate("A").
Examples
keystate("K")
keystate("shift")
keystate("F7")
