I have purchased a game on Steam and can not find out the details of the file or purchase. How does one find their CD Key from a game purchased in Steam?
Most Steam games don't have any CD keys. Everything is attached to your account and can be downloaded and run inside the client, and most games require no extra verification - the Steam client itself is sufficient.
For the games that do have CD keys, right-click the game in your library and click View CD key.
This will show a dialog with your CD keys for the product (actual keys redacted here):
Steam will also show a reminder on the Steam Overlay when you launch the game, allowing you to access the keys from within the game. Here, you can also tell Steam to not show this reminder again (in case you already entered the key inside the game, or if the game doesn't actually use the key).
If a game requires a CD key, you can right-click the game in your games list and select "View CD key".
Not all games have this option. If, for some reason, you need the CD key of a game which does not have this option, I suggest contacting Steam Support about the issue.