If you don't have the key printed on a Microsoft Certificate of Authenticity and stuck somewhere on your computer case, and if your installation doesn't work, you can't find the key and you need to buy a fresh, legitimate copy or a newer version of Windows.
Why do you need a key?