For version 8.0 and above
If you accidentally change a word in edit mode or delete a word or folder, you can correct it by tapping the Undo button, as shown in the screenshot below.
Note that you can undo only the last action performed and the Undo icon gets disabled after being used once.