JavaFX TextArea remove default undo action for shortcut Ctrl+Z
<p>I am trying to make an editable Java FX TextArea, that doesn't have the ability to undo the last step with shortcut Ctrl+Z. By default, when you create an editable JavaFX <code>TextArea</code>, JavaFX provides the default undo/redo functionalities for the shortcuts Ctrl+Z/Ctrl+Y while that TextArea is focused (as well as copy, paste etc.). I would like to disable these default actions for the Shortcuts Ctrl+Z and Ctrl+Y to be able to create my own undo/redo logic instead of the default logic provided by JavaFX. Also: I don't want to disable the undo redo logic from JFX completely, since I am using it afterwards, (<code>textarea.undo()</code> and <code>textarea.redo()</code> must still be possible) I simply want to remove the KeyPress Events that are created by default, how can I do this?</p>

<p>Code: I've created a TextArea inside a BorderPane with FXML, and attached a Controller to the FXML, so the TextArea can be accessed by code, no css file is used.</p>