Redid main loop and input keys

getkey() is now fast-key-tapping prone