Bug fix for number key presses