Changed typeahead behavior on tab and shift tab