**Describe the problem** The "CTRL + Z" needs to be clicked more than once to take effect - to revert the code alterations. **How do you reproduce the problem?** 1. open code-editor 2. perform code alteration 3. try undo/redo action - ctrl+Z 4. see the action needs to be performed multiple times to take effect **Expected behavior** "CTRL+Z" should work as in other code editors - after first click **Is this issue blocking you?** No - just a major inconvenience for users **Screenshots** [Peek 2023-11-24 08-11.webm](https://github.com/patternfly/patternfly-react/assets/4180208/0ac260af-4d77-4551-af58-de9bcc9a9588) **What is your environment?** - OS: [linux] - Browser [chrome, firefox] - Version [5.1.1] **What is your product and what release date are you targeting?** Kaoto-next - https://github.com/KaotoIO/kaoto-next/