Added support for closing the game by pressing the escape key.