Mistakes happen—one misplaced key press and suddenly your 10,000-word essay has been reduced to a blinking cursor. Don’t panic though: Whether you need to undo a single action or roll back a whole week’s worth of misguided edits to the work presentation you’re preparing, here’s how to save the day in any popular application.