Yes, K is a hydrocarbon, so your proposition seems correct. KOH is used for converting -CN to -COO- and H3O+ is used to protonate the carboxylate anion. Thanks very much for the help.
I thought that I could do the rest alone, but I got stuck again, there are things I need to learn and I hope that I will do now. The new scheme is attached.
In the first step the keto group and the two carboxylate groups should be reduced, so I got a triol. What happens when TsCl in pyridine is added? That reaction blocks me.