Ok, assuming you already have a Guild Wars account, start up the program and log in so that you are at the character selection screen, then press the Edit Account button.
Check the Manage Access Keys box and press Next.
Click on the Add Key button.
Enter the access key for your product in the boxes provided and press the Next button.
That's all there is to it