Probably need to see your entire module code to offer more advice. Is the widget you’re adding these handlers to actually receiving the event? What is the box size of the widget and where is your mouse when you hit backspace? Is another widget processing the event first?
Finally I keep the onHoverKey() system, despite the BACKSPACE deletes the module (I don’t understand why e.consume(this) (followed or not by return; is unefficient - perhaps the module deletion is priority, I don’t know. Also I don’t understand why two keys are reserved for… module deletion (Backspace, Delete) (IMHO, Delete key only was sufficient, why backspace?). By this way, I’ll must use left Ctrl (left Command on Mac) to rub the lastest entered char(s)!