How it works
Undo takes back your last step, and redo brings it forward again.
Think of a staircase, where each thing you do is one stair. Undo steps down one stair, and redo steps back up one.
When something vanishes, calm comes first and the fix follows: lift your hands off the keys.
Undo is a safety net with holes in it. A message that is already sent cannot be pulled back, and a closed program usually forgets its steps.