please help !

When a user enters data into a text box, on "enter"Key being pressed, calculations are carried out. How do we stop the user from being able to use a mouse button to go to another text box without first hitting enter, and therefore bypassing the calculation which will need to be done with the data he has just entered into the text field.

Your help would be greatly appreciated !!