While typing, double-tap the screen with three fingers. You'll see an "Undo" notification at the top of the screen, and your ...