Please help some basic switch code not working?

You could try reading the buttons (see reply #1)