What version number did you download (6.0.1203 is the latest) and from where ?
Where did you get your key from ?
If you have the latest avast version, essentially you don't have to enter a key, you register through the avastUI (user Interface, left click the avast tray icon), Maintenance, Registration section.