Please follow these instructions to activate a new retail purchase on Steam:

  1. Launch the Steam client software and log into your Steam account.
  2. Click the Games Menu.
  3. Choose Activate a Product on Steam...
  4. Follow the onscreen instructions to complete the process.

You can find more information in the Steam Support Knowledge Base