detect which button is pressed and use that value in switch statement?