I have an input field and I am using ajax to fetch results. Here is a simplified version of the code:
<input placeholder="search here" id="search"></input>
<div id="searchResults">
<a href="link">search result 1</a>
<a href="link">search result 2</a>
</div>
I would like for users to be able to navigate through the search results using arrow keys after they have entered a search query, without having to move the mouse or use the tab key.