Launch Steam and login to your account.
Go to Games and then click Activate a Product on Steam.
When the window pops up - click on 'Next' and then agree to the Steam Subscriber Agreement.
Enter the code you have received and click on 'Next' again. Now your product should be activated. Enjoy the game!