How to disable mnemonic for JavaFX MenuBar?

Viewed 1934

In my stage I have inserted a menubar at the top like usual for programs. I want to give the ALT key (together with arrow keys) some logic in another context within the stage. But everytime I press ALT and arrows I unintentionally navigate through the menus of the menubar, too.

I want to avoid that or better completely disable this mnemonic behavior. Setting the mnemonicParsing properties of all menus to false failed. I also tried this approach without success:

menubar.addEventFilter(KeyEvent.ANY, e -> e.consume());
2 Answers
Related