Input onKeyPress Function Working Only After Clicking Away

The fact that you have your code in the site onReady() gives me pause (for something).

As is stated in the wix-dataset AP I, “A dataset connects page elements to a set of items in a data collection.” Not sure if that means that the code should be on the page as well. Might be worth trying that - maybe we’ll both learn something.