Keyboard freezes after pressing caps lock

caps-lockhangkeyboard

After running for a day or two (not right after booting it), my laptop begins to display a strange behaviour: after pressing the caps lock my keyboard freezes which means that it does not respond to any input, however, if you press the caps lock with another character, e.g. "X", it continues to press "X" indefinitely. The only thing that can help is a restart. I've attached my laptop specs below, other than that I'm not sure what information could be useful in debugging this, so please let me know if you have any clues. If I check the crash report, the only thing that appears in there is OneDrive crashing about the same time I experienced the issue.

enter image description here

Many thanks!

Best Answer

For me resetting the NVRAM fixed it:

  1. Shut down your Mac and start it again.
  2. Hold Option, Command, P, and R keys.
  3. Keep the keys pressed until:
  • You hear the startup sound playing for a second time – on non-T2 models
  • You see the Apple logo appear and disappear for the second time – on T2 models

From: https://windowsreport.com/mac/macbook-stuck-caps-lock/