You can undo an action made with the Undo command.

Location of the Undo Command

You can access it from the ribbon menu Tools tab, Edit.

You can also access the Undo command in the Quick Access toolbar.

You can also undo by pressing the Ctrl + Z keys on the keyboard.