One very important point is that the keycap should be removed from the keyboard first.
Although dumping paint on the keycap whilst it is still in place on the keyboard would achieve the dual results of altering the colour of both the keycap and the keyboard, the functionality of the keyboard may undergo a slight regression.