Changes aren't persisted to disk until you choose save.
If you make a mistake you can "just" not save.
The problem with undo is identifying when something changes.
eg
As you type, a...b...c in the name box each letter changes something in memory.
Except you probably don't want to undo just that last letter.