This works with almost any program you are working in. When you think you have made a mistake, or deleted a file, or forget what you last did, or screwed something up, just hold down the 'Ctrl' (control) key and hit the letter Z. The ctrl keys are on the bottom left and bottom right of most keyboards. It will undo the last action you took. It is the
universal undo command for Windows computers.