changes NoMode keypress to Esc key