Music Shield pins D0-D9 - How to use for my own application?

Hi~ Mike:
In the code,you can fine some function on the “void setup()” function:
InitIOForKeys();
InitIOForLEDs();
The Real code of this two function is in the “config.cpp”
So go to the “config.cpp” file,We can find something like this:

void InitIOForKeys()
{
#if defined(AVR_ATmega1280)|| defined(AVR_ATmega2560)
DDRH &= ~(1<<VD);
DDRH &= ~(1<<BK);
DDRE &= ~(1<<PS);
DDRG &= ~(1<<VU);
DDRE &= ~(1<<NT);
//internal pull-high
PORTH |= (1<<VD | 1<<BK);
PORTE |= (1<<PS | 1<<NT);
PORTG |= 1<<VU ;

#else
DDRD &= ~(1<<VD);
DDRD &= ~(1<<BK);
DDRD &= ~(1<<PS);
DDRD &= ~(1<<VU);
DDRD &= ~(1<<NT);
    //internal pull-high
PORTD |= (1<<VD | 1<<BK | 1<<PS | 1<<VU | 1<<NT);
#endif

}

//Initialize IO control ports of LEDS
void InitIOForLEDs()
{
LED_DDR |= (1<<RED_LED);
LED_DDR |= (1<<GREEN_LED);

RED_LED_OFF();
GREEN_LED_ON();

}

So if you want to use the other key,you can change something into here.
For the D2,it is use to the SoftSerial for the Ipod_connecter.
So if you Do not want to use the hard ware key,you can delete this two function like this
//InitIOForKeys();
//InitIOForLEDs();
and define all the key you want.