We can refactor so the keypress triggers `inputEntered`, which determines whether it was an Enter key or not and then sends it to `autoComplete` or `addLocation`