Using the keylight effect in After Effects:
Select Effect> keylight 1.2.
Drag and drop the keylight 1. 2 effect (highlighted in red on the right) onto the green screen layer
Select eyedropper tool and click on the green screen
Select 'Screen Matte'
Adjust the black and white clips until the black is completely black and the white completely white.