It seems that that might be a virus. With X closing everything, and doing the things it does, It might be that you have some sort of virus. Have you preformed a scan lastly?
On my experience... It wasn't anything underneath the keyboard because I popped the sucker out and didn't find anything. You wouldn't believe how much you use "e" and "r" until you get multiple w's after each one.