Sticky Keyboard Input, keys get stuck in down state

Oh. Just reproduced without Rewired.

Just using "Input.GetKey( KeyCode.W) " will cause the bug… :frowning:

Probably this is specific to macOS editor. I really wish there were more engineers at Unity using macOS, cause the usability is getting worse every version. Not to mention the invisible, blacked-out-panels in the new version of Unity.

But to be clear, I’ve been experiencing this bug since LTS 2020.3.17 on an intel mac (probably when the underlying Input changed… and caused this bug ). It’s just even worse now in 2021.2.2.

Repro steps:

  1. open SampleScene.unity
  2. tap W and S to move cube
  3. Sometimes, after tapping W or S, it will get stuck, making your cube continue moving forever.
  4. Move the mouse or hit any other key on the keyboard to “reset” the stuck input.

7648687–953611–sticky_input_bug.zip (6.46 MB)

2 Likes