Implemented the ability to change speeds and quit with keyboard.