You can cancel a skill/spell by right clicking or hitting Esc.
Aiming for the feet of an opponent can help prevent miss-clicks (the idle animation movement generally being in the upper half of the body), though click detection could be improved. The overhead tactical camera (b) can also help.