How to access dmn-js keyboard module

Hi,

I am looking a way to access dmn-js keyboard module like in bpmn-js using:
modeler.get(‘keyboard’)
Is there a way to get it and bind - unbind keyboard event manually in dmn-js?

Thank you for your help in advance.

I found out that the keyboard module is there but there is a slight synchronization issue so when I accessed like this:

setTimeout(function() {
  modeler.get('keyboard')  ...
}, 100);

Then it is works fine.

You propose the correct workaround.

I created a ticket in the dmn-js issue tracker that should address this behavior.