Keyboard went haywire typing randomly
Hi,
My keyboard on my M1 Mac just went haywire and started typing randomly and opening applications on its own (I'm assuming through keyboard shortcuts?). The Music app opened, and then it started switching between apps that were open... anything it opened, random letters were being typed, e.g., "=-0tiyxuhjkl" and "io;0 oi8.,09n8 j8k."
I wasn't able to stop it. Things kept popping up, and it was just typing into whatever application was on the screen. The mute button on my touchbar kept going on and off, too. I just forced a shut down of the laptop, then restarted. It hasn't happened again, and I ran Malwarebytes, and it came up clean.
Just a glitch? Or something else?
It may have been related to switching my input language with the key combination that I have that does that (pressing Caps Lock). I often accidentally hit that, and it typed the first few letters in that second language, then switched to English. It wasn't just one letter, so a key isn't stuck. Never had this happen before. It was super weird.
Help?