Pressing both LShift and RShift together produces a bug

If both LShift and RShift keys are pressed together, after releasing, GD will think that a shift key is still being pressed.

Here’s a simple example to replicate:

  • Press LShift and RShift at the same time
  • Release both
  • → Boolean Pressed will stay True

Here’s another example checking only 1 Shift key:

  • Press LShift and RShift at the same time
  • Release LShift first (keep RShift pressed)
  • → Boolean Pressed will stay True - Even after releasing RShift

Something I noticed in the case of the second example, if LShift is released last, the event will work normally.

2 Likes

I seen this in many old games
Where for them there is just SHIFT and not like difference between left and right

But i would assume it does check if L or R shift is pressed
But checks just if SHIFT is not pressed

And i tested
Same issue is with key released

Even using NOT does not help

1 Like

This has been around for a few years unfortunately, and I’m not aware of any fix for it.

2 Likes

I went even with checking individual keys with individual vars

Still fails