Whenever I use the autocomplete feature with mat-options, pressing the down arrow always selects the first option. I am unable to navigate to the second option using the down arrow key. The only way I can access the second option is by clicking it with the mouse. While I can click on the correct option and perform a GET request as desired, the issue lies with the cursor arrow navigation. How can I configure the autocomplete functionality to allow me to move down the list using the down arrow key? I suspect that the problem may be related to the onKeySearch() function, but I'm not sure how to resolve it. Any assistance would be greatly appreciated!
Component
// Component code goes here...
HTML
// HTML code goes here...