added support for esc key