If you are using a Windows device, the shortcut for undoing is Ctrl+Z and if you are using Mac, press Cmd+Z.