Problem: Pressing "Enter" could trigger the selection logic twice—once from the text box and once from the list of options—causing the model to switch twice. Fix: Now, the text box only handles "Enter" if there are no options in the list. If options are present, only the list handles "Enter." This prevents the selection from happening twice. before: https://github.com/user-attachments/assets/ae02f864-2f33-42c0-bd99-dee2d0d107ad after: https://github.com/user-attachments/assets/b656ed19-32a2-4218-917b-9af630a4fb2f