You can undo the latest action by clicking cmd+Z on your keyboard or by using the system menu (the one at the top) in the Edit section.