In your game library, click "More" and then select "Serial Keys".
These are only available on the GOG website, not the desktop client!
You can use inspect element to easily copy these keys, but be careful as to not to copy the spaces before and after each key. Save these keys for the next step.