Keys get "stuck" randomly and type endless line of a particular letter/command
I have a strange problem in Ubuntu 18.04 (I use a DELL Latitude E5550): sometimes when I type, some keys get "stuck", meaning that when I type "i", the result is an endless line of i-s ("iiiiiiiiiiiiii"). If backspace gets stuck, entire texts I wrote are deleted. I can stop this by pressing some other button.
I had the same problem in Ubuntu 16.04 while using the same laptop. I "solved" this issue by setting the keyboard to write only one character when I press down a button. However, this possibility seems to be missing from Ubuntu 18.04.
A few days ago I ran a hardware diagnostic, which found no problems on the hardware side.
Solution 1:
In Ubuntu 18.04 issue this command:
$ gsettings get org.gnome.desktop.peripherals.keyboard repeat
true
If the result is true
then turn off keyboard repeat using this command:
$ gsettings set org.gnome.desktop.peripherals.keyboard repeat false
The other related commands you can use are:
$ gsettings get org.gnome.desktop.peripherals.keyboard delay
uint32 500
$ gsettings get org.gnome.desktop.peripherals.keyboard repeat-interval
uint32 30