Autocomplete search hit enter/click search icon functionality for Wordpress

Hi @rayrutjes Greetings, I have implemented autocomplete following the documentation on my Wordpress. But, I couldn’t find the functions or references for the below.
Scenario 1: If user enters an input and hit enter it should go to the search results page with the entered query term.
Scenario 2: If user selects keyword from autosuggestion and click enter/hit on the search icon, the same redirection to the search results page should happen.
Here is my sandbox url: Insights Events via CDN (forked) - CodeSandbox
Can you please help me out with the solutions for the above queries?