keyPressed
Preserves Minecraft's screen-level Escape handling before delivering other key presses to the focused retained component and then inherited focus-navigation behavior.
Return
true when common focused behavior or inherited screen behavior consumes the event.
Parameters
event
native immutable key record.
Throws
when focused behavior, inherited navigation, or terminal cleanup fails.
when invoked away from the Minecraft client thread.