esc should be ignored when not searching in emacs mode