You can generate an user event by checking the "Keyfocus" property of the Text box (String control).
Example: User enters a name of an employee to a string control. Once I detect the "value change" event, I make a search in a DB and list some properties associated to the employee. These params can be modified and saved by the user. It is possible though that the user modifies some of the parameters but the decide to return to the original values. In this case he has to enter a different text into the text field and then reenter the name of the employee. Simply entering to the textfield and pressing enter does not trigger the value change event as the value didnt changed so the default values are not loaded back.
Now you can ask why dont I simply have a load button. The example above is quite simplified. A load button is not feasible, Detecting a lost focus would resolve my problem though. And I can realize this function but query the focus status of the field in every 10ms, I am just wondering if there is a more elegant way to do it.
Thanks... for this case checking the keypress works just fine! I was thinking about registering custom event, which I did, but it is an overkill as I can just check for keypress.