wow! see this was opened in 2007. just googled this from the future (i am in 2018) and found this.
using ubuntu 18. found that what was causing it in my case was a clipboard manager i use here. closing the clipboard manager stopped the bleeding. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xorg-server in Ubuntu. https://bugs.launchpad.net/bugs/124406 Title: Keyboard keys get stuck and repeat To manage notifications about this bug go to: https://bugs.launchpad.net/emacs/+bug/124406/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp