updated to search on keydown