The task is this. Some element is selected from the list. For example, there is a "cat, cat" there. I write "ko" choose "cat", i.e. I click on the item "cat", how to handle this choice? I clicked on the cat and I need to perform an action after that.
And another question is how to perform actions when typing each letter?