The carbonyl group (-C=O) consists of a carbon atom joined to an oxygen atom by a double bond.

Ketones have the carbonyl group within a carbon skeleton.
Aldehydes have the carbonyl group at the end of the carbon skeleton.