Use a hold-out matte (also known as a hold-back matte) to patch a scene to which a keying effect has been applied.
A hold-out matte is a masked-out portion of a duplicate of a layer that you have keyed. The duplicate is masked to include only the area of the image that contains the key color that you want to preserve as opaque. The hold-out matte is then placed directly on top of the keyed layer.
