# Search bar control

## Keyboard interaction

When the menu is open, the following key commands are available:

| Key | Action |
|-----|--------|
| UP | Move focus to the previous item. If on first item, move focus to the input. If on the input, move focus to last item. |
| DOWN | Move focus to the next item. If on last item, move focus to the input. If on the input, move focus to the first item. |
| ESCAPE | Close the menu. |
| ENTER | Select the currently focused item and close the menu. |
| TAB | Select the currently focused item, close the menu, and move focus to the next focusable element. |
| PAGE UP/PAGE DOWN | Scroll through a page of items (based on height of menu). It's generally a bad idea to display so many items that users need to page. 

When the menu is closed, the following key commands are available:

| Key | Action |
|-----|--------|
| UP/DOWN | Open the menu, if the minLength has been met.

