Added arrow key panning.