Fixed keyboard dismissal.

* When tapping away from text fields, dismiss keyboard.
* When tapping ‘return’ key, dismiss keyboard.