To add to Leafo's answer, you can check at the bottom of a game's page whether or not it comes with a key. It'll say something like, "In order to download this game you must purchase it at or above the minimum price of $0.00 USD. Your purchase comes with a Steam key."