moved exitGame function in application class
added basic key input handling