Input.GetKey() keeps returning true when a key is released.

Hi there,
When I release a key, Input.GetKey() sometimes keep returning true.
Anyone know why?

I’m using Unity 2021.2.2f1 on M1 Pro Mac.
Here is my code.

void Update()
{
    if (Input.GetKey(KeyCode.A))
    {
        Debug.Log("Pressing");
    }
}

Yep I’ve got this too! I submitted a bug report (#1381681) a week ago, but haven’t heard from anyone yet. I’ve seen a few different threads about it, so I’m fairly sure we’re not alone @ukn !

I will say that I don’t think it’s an Apple Silicon only problem. I feels way worse on my M1 Pro, but I’m fairly sure it’s also happening on my Intel Mac.

I have the same problem too.

@mark-shin - fix is in 2022.1 b6. Check here for more info:

Sticky Keyboard Input, keys get stuck in down state page-2#post-7868161

Thank you for letting me know!

1 Like