Create a periodic timer that checks the coordinates of the unit. Store the coordinates. During the next loop, load the old coordinates and compare the current coordinates with them. If they are not equal, the unit has moved.
A period of 0.03 seconds is low enough.