Toggle Key Fix
This mod fixes MC-301281, which was erroneously marked as 'works as intended' by Mojang, and caused toggle sprint and sneak to be reset upon opening a GUI.
⬇ Download on ModrinthThis mod fixes MC-301281, which caused sprint and sneak toggle states to be reset whenever a GUI was opened. This meant that if you have sprint or sneak toggled on, and you open a chest/chat/menu, your sprint and sneak would be toggled off after closing the GUI.
This bug was caused by Mojang's fix for MC-300695 only accounting for keyboard keys, not mouse buttons. The game would incorrectly reset toggle states for any keybind assigned to a mouse button when opening screens, even though mouse buttons don't have the same key-release behavior that caused the original issue.
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as toggle-key-fix-21.11.0.jar — drop this file into the mods folder
- Download size: 14 KB
- Download link checked 30 Aug 2026 — working
These come from our own check of the pack file, not from the source page.