Now can stop the game loop from running. Made exit button functional
Merged, new key event handling