How to control RGB LED with push switches?

See the state change detection tutorial. Use the pushButtonCounter in your switch case structure.