How do windows 10 product keys work?

How does the pc (if im getting a custom pc build) start up without windows? Also, how would i install windows with a product key? im a beginner at this stuff
4 answers 4