refactoring; added escape key