Ok i did some testing now. And i found out a little bug with. altKey.isKeyDown()
That is bugged out in the first place. It will only work in guis and not ingame anymore.
What the fix has to be is something like this:
Code
public boolean isKeyPressed(KeyBinding binding)
{
return GameSettings.isKeyDown(binding) && binding.getKeyConflictContext().isActive() && binding.getKeyModifier().isActive(binding.getKeyConflictContext());
}
Its tested and works fine. It supports DoubleKeys and makes sure that it works.
So thats the tested fix now.
Also thanks for the no response xD