Multi-Dimensional Arrays, Retreving data.

Right now you can turn on every single light by itself using this code:

Chosing the byte that will be sent to the arduino.

byte heartPowerA[1] = {B10001000};
byte heartGroundA[1] = {B11111011};

Sending the byte using shiftOut command.

for (int i = 0; i < 1; i++)
{
digitalWrite(latchPinA2, LOW);
digitalWrite(latchPinA1, LOW);

shiftOut(dataPinA2, clockPinA2, MSBFIRST, heartGroundA*);*
_ shiftOut(dataPinA1, clockPinA1, MSBFIRST, heartPowerA*);_
_
digitalWrite(latchPinA1, HIGH);_
_
digitalWrite(latchPinA2, HIGH);_
_
delay(100);_
_
}*_
First off the column 0 would be used to control the up and down motion. The columns and rows 1-8 would controll where the dot goes left to right.

What i realy want to do is use this array and implement my buttons that would shift through the array.
Lets say that my dot was on the top lef of the led matrix the bytes i would be sending would be B11111110 and B10000000. Now if i wanted to move the dot to the right i want the button to move through the array and with the press of the right button start sending B01000000, if pressed again B00100000. As i'v wirten in the aray.
The same goes for up and down they would just be controlled by the column0 ex. the top left light B11111110 and B10000000. On the press go one down the bytes would be B11111101 etc.
*int ledMatrixA[8][9] ={ *
{B11111110,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B11111101,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B11111011,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B11110111,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B11101111,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B11011111,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B10111111,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001},
{B01111111,B10000000,B01000000,B00100000,B00010000,B00001000,B00000100,B00000010,B00000001} };
If you have any idea of how this should be done please help.