In my opinion, the button activates a different action than typing text into it.
Remember that in JavaScript use browser API you can specify many of the locations you want to activate (become available) for other elements on the page.
The text input action can't necessarily be the correct one.
Ask the developer what is responsible for activating the button.
Is it not a case of a click on a text field or a .focus or .hover, a tab.
In development tools such as Google chrome, you can perform such actions yourself by selecting an item and right-clicking on it,