Right clicking will cancel a move; right click or Esc will cancel an activated spell that needs a target. Actually Esc will cancel a move, as well, but brings up the menu, so if you just wanted to stop you'd have hit Esc twice.