Accessing Keybinds when a GUI is open. Please HELP im using 2024.4!!

Started by sombook on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Accessing Keybinds when a GUI is open. Please HELP im using 2024.4!!

So i have an GUI open and I want to press my keybind, but it doesnt do that. What am I doing wrong? I also dont really want to use buttons, they don feel right to use for my mod

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you don't need the server…
Sat, 10/25/2025 - 09:57

if you don't need the server to know you can use,

InputConstants.isKeyDown(Minecraft.getInstance().getWindow().getWindow(), InputConstants.KEY_RSHIFT);

where InputConstants.KEY_RSHIFT is the key which can be,