Hooks up keyboard and mouse events for search