vtech babys first laptop brain replacement

This is what I have tried for the button's part anyway.... But as I stated previously when buttons are pressed nothing happens just keeps going through random patterns.... Which is why I disabled that section, till I have a better understanding of what I should be doing.. Again thank you for the quick responses. What I would like it to do is run through random patterns till catches button press then do button press function followed by return to random pattern, or blank and go to sleep for batt savings.

void interface(){
//TODO: debounce and interpret button presses for led display function
// 9 buttons - 9 different flash patterns
// if (button press == 0-9){
//do something different each button press}
int button;

if (buttonlist[0] == HIGH){
//MOON
int x=0;
int y=0;
ledOn(x,y);
}
else if (buttonlist[1] == HIGH){
int x=0;
int y=0;
ledOff(x,y);
}
else if (buttonlist[2] == HIGH){
scrolly();
}
else if (buttonlist[3] == HIGH){
alternating();
}
else if (buttonlist[4] == HIGH){
flash();
}
else if (buttonlist[5] == HIGH){
starPat();
}
else{
int x=1;
int y=1;
ledOn(x,y);
delay(150);
ledOff(x,y);
delay(150);
}
}