added key selector to search functionality