Hide the autocomplete after selecting the country with the mouse.
Refactor to improve mouse and keyboard interactions.