Steam stores product keys on its servers rather than requiring the client to keep them. If you legally purchased the game and have an account, you can log in normally and do not need the key again, even after uninstalling.