Search Unity

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

Discussion in 'Input System' started by ukn, Nov 23, 2021.

  1. ukn

    ukn

    Joined:
    Jan 31, 2015
    Posts:
    3
    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.

    Code (CSharp):
    1. void Update()
    2. {
    3.     if (Input.GetKey(KeyCode.A))
    4.     {
    5.         Debug.Log("Pressing");
    6.     }
    7. }
    8.  
     
  2. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    275
    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.
     
  3. mark-shin

    mark-shin

    Joined:
    Apr 20, 2014
    Posts:
    13
    I have the same problem too.
     
  4. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    275
  5. mark-shin

    mark-shin

    Joined:
    Apr 20, 2014
    Posts:
    13
    adslitw likes this.