When you click the secondary button on your Mighty Mouse, you will most likely see a contextual menu appear, depending on what you clicked on. In some applications, clicking the secondary button starts a certain function.
If you clicked the secondary button by accident, just click the primary button to clear the menu or action.