Add ESC_KEY support for edit.