here's an odd question, but have you tried using another keyboard? I had a keyboard go bad on my couple months back and had similar problems. Random buttons would work/not work and in game i would some times get stuck walking forward endlessly...

Worth a shot.