You do that when Windows asks for it periodically. You do not need to activate the product key while installing Windows 10 or its Pro version. The product key that you get with your version certifies that your copy was not acquired by violating Microsoft’s copyrights.
Whenever you make a software purchase online, you get a product key that proves/validates your legitimate purchase. A product key is also known as a software key.