for Windows 8.1 media you will select "Windows 8.1" - (Not Pro or N)

for the Windows 10 media >
you will select "Windows 10" (Not N)

if you are downloading and installing the correct edition - setup will not ask you for a product key..
As the correct Setup Media will read the embedded product key
and not ask for a product key and will activate...