Fix framerate, and stop on keypress