You're playing an RTS with a magic mouse? That sounds painful. I pity your fingers and your units. If you press M or hold Spacebar, you can spin, but that requires a mouse3 button, which the magic mouse doesn't have. or, you might have accidentally pressed N, which orientates you to the nearest pole.