Implement keydown events for search