Add support for esc key.