@atin, well dude, the way you addressed your problem, it seemed to me that the problem was only while playing the game.
Anyways, if cleaning the ports didnt help, then get a friends KeyBoard & test whether the Problem is with the Keyboard or the Motherboard Ports.