You can use xinput to temporarily disable a keyboard. Run xinput list to get its ID, then run xinput float ID to disable it.
post
replies:
It may be unrelated but I had this happen on my mechanical keyboard.
You can remove key cap, hold keyboard upside down and keep hitting the letter, and try some compressed air.
If there was dust or something inside it dislodged it, and keyboard was good after
https://github.com/raspberrypi/rpi-keyboard-config looks promising.
all 5 comments