Key repeating doesn't work in 17.10
Solution 1:
There seems to be something wrong with peaq_wmi module. You can try to blacklist it (worked in Kubuntu 17.10):
sudo su
echo "blacklist peaq_wmi" >> /etc/modprobe.d/50-blacklist.conf
Reboot your machine and everything should be ok. Hope this helps.
Found it here: https://forums.opensuse.org/showthread.php/527307-Keyboard-repeat-problem
Solution 2:
After looking for a solution I tried the answer above about doing
sudo su
echo "blacklist peaq_wmi" >> /etc/modprobe.d/50-blacklist.conf
but still did not work (Tested with Lenovo Yoga 4 & Dell 2-in-1 Inspiron 7000) Basically Ubuntu and 2 in 1 devices hate each other that's my conclusion (Don't get me started with Touch events).
Anyway after upgrading Ubuntu to the latest (At least since today) and going to Universal Access and enabling Repeat Keys, it works now and has been working on all apps that I tested and worked on (eg: Firefox, Chrome, LibreOffice, Gnome Panel, etc...)
So you have the option of updating Ubuntu and seeing if that fixed it. If not using the Universal Access option and if not, applying the blacklist option for the peaq_wmi (European OEM for 2-in-1 Devices it looks like). So this would make sense because it only happens using 2-in-1 devices. That's my feedback so far handling the stress of trying to solve this.