Return from editing mode when Esc is pressed