pressing esc now stops editing