bug fix: do not handle key presses when game is paused