Function Node._unhandledKeyInput
Called when an InputEventKey
hasn't been consumed by input
or any GUI. The input event propagates up through the node tree until a node consumes it.
It is only called if unhandled key input processing is enabled, which is done automatically if this method is overridden, and can be toggled with setProcessUnhandledKeyInput
.
To consume the input event and stop it propagating further to other nodes, SceneTree
can be called.
For gameplay input, this and unhandledInput
are usually a better fit than input
as they allow the GUI to intercept the events first.