How to “Undo” your typing in Apple iPhone OS 3.0+

There is this cool little feature with iPhone OS 3.0+ which allows you to quickly undo what you just typed.