On the iPad, the keyboard dismissal button on the keyboard could be call...

...ed. Listen for it.