Ketones are in fact weak acids. This comes from an ability to shift the places of the double bond and one of the hydrogen atoms, resulting in an alcohol compound with a double bond between two of the carbon atoms. This is called an enol, and is less stable than the ketone - the two are in rapid equilibrium. This enol may lose a hydrogen ion to become an enolate. This happens only when a ketone is reacted with a strong base.