One simple way is to create an enabled but invisible button on the window that traps the return key. When you create the button, make it of type "Validate" as this will then interecpt the Return/Enter key. If there is no code in the click event then nothing happens.