Space or enter may activate the selected button in your app.

You should add code to your forms keypreview event call your function and set e.handled=true to keep the button from being processed in another manner.