If the key is indeed illegal, nothing that we can do. If it is lega
When it asks for your key, do not give it. Untick the box allowing for automatic activation when on line.
Then install programs, use the system when you are ready, but before 30 days, activate by phone. Activate Windows 7 by Phone
If you key, for whatever reason, is not valid, this nor any other method will work.