clear

fun clear()(source)

Clears all pressed keys from the state. This can be useful for resetting the state, for example when the window loses focus or during scene transitions.