I don't know which Windows version you have. In Windows 7 you can turn this behavior off in the control panel, mouse properties. In the tab 'pointer options' check off 'automatically move pointer to the default button in a dialog box'.
Now the irritating mouse behavior should be gone.