On the iPhone you can press "return" in the bottom righthand corner. On the iPad you can press the keyboard dismiss button in the bottom righthand corner. On either device you can also touch the screen background or a help symbol ("?").