add keyboard support in autocomplete