Detects if a key input is pressed down. This function must be called in your update function to detect inputs. To get specific keys, go to https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key#result.
The key name of the key.
True, in the frame the key is pressed down.
if (input_key_down('a')) { // 'a' key is pressed down} Copy
if (input_key_down('a')) { // 'a' key is pressed down}
Detects if a key input is pressed down. This function must be called in your update function to detect inputs. To get specific keys, go to https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key#result.