Yes, dirt or scratches on your keyboard can result in this problem. Make sure to try your application with an external keyboard. When the outside keyboard functions, you likely should clean or change your laptop’s keyboard. Make sure your desktop keyboard’s connections are tight.
Website – https://datarecovee.com/windows-key-not-working/