How to trigger the my cusom function when do the ctrl+z or ctrl+y?

HI,
How to trigger the my cusom function when do the ctrl+z or ctrl+y keys ?

What is a cusom function?

Thanks for quick reply, I written a custom function called makeUndo(), inside this I’m calling commands tack.undo() and few conditions as per my requirement,
I want to hit my custom function (makeUndo())
When I do ctrl+z , let me know if you need more inputs

Full example: https://codesandbox.io/s/bpmn-js-custom-keyboard-binding-54c8z

Should answer your question.

Thanks for the reply, it’s helpful