Changed how window closes when escape is hit.
Previously, the window would close when the escape key is released, but not is closes when the escape key is pressed.