The color of the key need to match the color of the brick the key is used on for onkeymatch events to work. If the color of the key is not the color of the brick, then onkeymismatch will work. These events work with different colorsets as long as the brick color is a type yellow, red, blue, or green.