Fix keyboard input and FPS display.