On the first step, the cyanade-anion donates an electron pair to the carbonyl carbon, forms a bond with it, pushes an electron pair of the C=O bond to oxygen, and forms a tetrahedral alkoxide.
On the second step, the alkoxide is protonated by HCN and generates a cyanade-anion, which returns to the first step as a catalyst.