Undoing actions is as simple as hitting the good old Ctrl+Z on your keyboard. And... that's it! This will revert the last action you took and you can go back a few actions before that.
Undone changes can also be redone, by hitting Shift+Ctrl+Z. You can find these options going to the "Edit" option, in the the upper settings menu bar.