The escape key now closes the window.
The window will now close if the player presses the escape key. Also, some minor documentation was improved within manageWindow().