add support for esc key