Running a namedquery from a TextField

When a user enters a string in a TextField I’m looking for the update query to run either when they press enter or clicking someplace on the screen. What’s the correct Event(s) I should use for the script? Nothing seems to be working.

Is there a reason you wouldn’t want to put your logic in an OnChange event for the property?

# Setting a sibling Table component to the results of a query run whenever the prop changes
if currentValue and currentValue.value != previousValue.value:
    self.getSibling("Table") = system.db.runPrepQuery(<query>, [currentValue.value])

Failing a property change, it sounds like onBlur() should be what you want? The inverse of onFocus.