Cleaned up text field interaction.

Dismiss keyboard when searching, clear field when returning to search.