i had this same problem when i was using an old keyboard on a newer computer. the keyboard wasn't that old and had a ps2 connector but it still behaved strange. can you plug the keyboard on a usb port? i would just try another keyboard if thats not possible.