For example, if I wanted to make it so that while one key is pressed, no other key can be detected for a few seconds. Or, more importantly, if certain objects are overlapping, a certain key press will not respond?
Develop games in your browser. Powerful, performant & highly capable.
Use a global variable, e.g.
+ On space pressed
+ Global 'DisableFlag' is 0
-> Do actions
The actions will not run for the key press if you set DisableFlag to 1, so the key has effectively been disabled.