Moving away from mouse

yo yo,
how can u make an object eg. a square move away from the mouse every time you moved the mouse near to it

eg, being unable to click the swuare cause the mouse cant hover over it?

thanks in advance for any help

-kip