Adding more complicated panning script

The panning now increases the close the mouse is to the edge of the
screen. The arrow keys also cause a full pan.