How can I paint keyboard keys in different colors?

Select the necessary key in the Edit keyboard type window, click the Picture / Color... button, and then specify the color for each state in the Color fields.

Select different colors

Example:

Keys in different colors