If you set your Form‘s AcceptButton property to one of the Buttons on the Form, you’ll get that behaviour by default.
Otherwise, set the KeyPreview property to true on the Form and handle its KeyDown event. You can check for the Enter key and take the necessary action.