You might have pressed outside the game and lost ffocus, hence the key presses won't registrr. Try clicking on the game window to make sure the game is in focus.