Adding an esc key event.