The how do I FAQ does have implementation of lots of mechanic, amongst which orthogonal movement (also known as Grid movement).
This tutorial also uses the orthogonal using the keyboard. Nevertheless, it is not too difficult to modify it in order to get the mouse work instead.