Added support for closing GUI on escape key