This program illustrates detecting a simple event in a text box