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

Will go through this and do some testing.
Much appreciated!!!!!