KeyDown
True while a key is held.
KeyDown ( scancode )
Parameters
- scancode
- the key's number, such as 1 for Escape or 203 for the left arrow, or its name, such as
KEY_LEFT. The built-in constants and the scancode picker list them all.
Description
Tells you whether a key is being held down right now: 1 if it is, 0 if not. Use it for things that happen for as long as a key is held, such as moving.
