Add undo mod with Esc key
Add undo func with Esc key