Fixed all the quit and keyboard nonsense\!