If your mouse pointer keeps moving in certain scenarios, like automatically appearing on the OK button or the text box, you need to disable the smart selection in Mouse Properties. Go to Settings ...
On the Mouse page, click on "Additional mouse options" under "Related settings." In the "Mouse Properties" pop-up, click on "Pointer Options." Use the slider under "Select a pointer speed" to ...