Fixes behaviour when typing and pressing enter

When typing, pressing enter will select the first from the filtered
list.