Try getting an antivirus software and scan your computer for viruses.
Try changing your keyboard, may be there is a problem there. I had an almost similar problem with my mouse, I had to click so many times. I changed the mouse with a new one and everything was set right.
Hope this helps.