There is usually an option when setting up your mouse to Automatically jump to the ok/ cancel buttons, i think it called Intellihop or something along them lines, at least its called that for my mouse.

If you take a look at your mouse setup you should find the box that you need to uncheck!