Look

C=O is polar: O pulls the electrons, leaving the carbon δ+. A nucleophile such as CN⁻ attacks that carbon, and the π electrons move onto O: follow the two curly arrows.