On the Subject of Keyed Buttons

Oh, it's just a colored key, let me pres- oh god, why is there a button under here?!?!

On the module, there are 4 colored keys.
The colors are in order: Red, Green, Blue, Yellow, Cyan, Magenta, and Black.
When you press a key, a button of the same selection of colors will appear.
Use the color of the key as the column, and the color of the button as the row in the table below to get a number.
When the last digit of the timer is that number, press that button.
Do this for all 4 keys and buttons to solve the module.
If any buttons are wrong, a strike will be recorded, and new keys and buttons will appear.

0123456
6012345
5601234
4560123
3456012
2345601
1234560