|key||The key to clear.|
With this function you can clear the current keyboard state,
which essentially means that if the key is being held down, it will
no longer be recognised until it is released again (which won't
generate a keyboard_key_release event
either on this occasion) and pressed again.
The above code clears the state of the spacebar.