Press CTRL+Z (Alt+Backspace) until you've fixed your mistake. If you prefer your mouse, click Undo in the Quick Access Toolbar, in the upper-left corner of the Window.
You can't undo some actions, such as clicking commands on the File menu or saving a file.