Change button color

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Mac
PsychoPy version (e.g. 1.84.x): 2022.2.5
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
There are 5 buttons, participants should choose 2 of them before going to next trial.
Buttons would change color if they were pressed in, initial color is blue, press one time change to red, and press again change to blue again and so on.
There could only 2 buttons be red at the same time.
After choosing 2 buttons, the hint shows up that they can press space bar to go to next trial.

What did you try to make it work?:
Refer to Psychopy Questionnaire with Polygons, I can only change one button color.