fix(typeahead): fix selecting with ENTER

fix selecting with ENTER that was not properly refactored
it now also prevents selecting when list is not visible