What happens when acetone reacts with hydrogen cyanide?
The acetone carbonyl is attacked by the CN$^-$ that comes from the NaCN.  This tetrahedral intermediate has a oxygen anion, which then grabs a proton from the HCN, regenerating the CN$^-$.