Reset autocomplete selection when results are hidden

Also, reset results when source function returns no results.
Fix results hiding preventing callback from being passed selected value
Prevent Shift key from accidentally triggering search

This commonly occurred when pressing Shift-Tab to cycle back through
form inputs.