Pairing iPad with folio keyboard case for iPad two

Trying to pair my iPad 2 air With no success. It gives me a code but I can’t get out of that screen to put a code in

Are you typing the code in on the folio keyboard, followed by the return (or enter) key? That should complete pairing…