add esc & enter listners to editors