Need to add a custom button on canvas and attach different events to them. some think like this
Does this answer your question? GoJS Buttons -- Northwoods Software