Add exit/escape key command.
Remove need for utility functions in EditorHistory by storing all states as arrays of Mementos.