I'm trying to make an undo button which always responds to the keybind "Ctrl + Z". The button works properly, but if at any point I select a textbox in the form (which happens, you know, regularly), then it stops responding to the keybind.
While it does still respond to being clicked, I want the keybind to work properly regardless of whether I have a textbox selected.
I have tried making the undo button the first responder, which failed to work, and I have also tried defining sinkAllKeyEvents = 0; for the textbox, which also failed to work.