17ac24f4db
ToggleKeys holds the sneak, sprint, attack and use ToggleKeyMappings with the dispatch of KeyboardHandler.keyPress (releases always reach them; presses and SDL key repeats only without a screen), MouseHandler.onButton, Gui.setScreen (releaseAll / restoreToggleStatesOnScreenClosed) and LocalPlayer.respawn (resetToggleKeys, which Horizon lacked). Presses behind a screen no longer flip a toggled key. tools/test_toggle_keys_parity.py drives the real Options mappings through the real static KeyMapping functions (8,000 sequences). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>