That can sometimes happen on wireless keyboards if say it needs new batteries or the keyboard itself is out of range. But Im thinking here that with running the game and an internet browser at the same time, it could be putting some stress on your processor(s). Maybe try closing down some background things if you have them running such as Skype or music to see if that helps.