We're using the Sketch tool and would like to change the behavior of some keyboard events, specifically the "escape" key while in create mode. I haven't been able to find anything in the docs, so I'm not sure how to proceed. To be clear, waiting for the "cancel" event is too late for our use case - we want to be able to modify what happens when "escape" (or another key) are pressed.
Though I haven't tried it, it seems like adding a listener on the MapView to essentially intercept the keypress might work? But to be honest, I'm hoping I'm missing a more obvious approach. Any suggestions or ideas are welcome!