Fix search input to detect keypresses