All programs except mine seems to have the same event when clicking the OK or confirmative button and when pressing the enter key.

How can I have mine to do that too?
Is it a keypress function?