When typing something in the preference search field I usually press ENTER when finished.
This closes the preference window because the OK button is pre-selected. I would prefer that happens. Or maybe then the focus changes.
The current behaviour is not conform with how search fields work in other products (google, windows, ....)