I am having almost exactly the problem described in https://forum.manjaro.org/t/keyboard-becomes-unresponsive-and-repeats-last-input-infindefinitely-with-mute-and-volume-up/51894 though I am on KDE. (apologies for the lack of link, this is my first post and I don’t have link privileges apparently).
To summarise:
Sometimes the laptop keyboard becomes unresponsive
The touchpad remains responsive
If you connect a USB keyboard, it works
The laptop keyboard does not resume working until you restart.
The differences are:
I have observed this behavior only twice. The first time, the keyboard appeared to simply be unresponsive.
When it happened this morning, I was in command mode in Intellij (with Vim enabled) and Intellij was getting repeated x key presses (so, yes, it was deleting everything on its own)
I have not identified a particular key that triggers the behaviour.
KDE
Dvorak keyboard layout.
Other info:
KDE has my keyboard as “Generic | Generic 86-key PC”. I do have “repeat the key” selected for “when a key is held”, but I’m pretty sure the system is not interpreting the key as being held (switch from Intellij to Konsole didn’t result in repeated Xs)