Currently, if we select a node, and then type on some input textbox anywhere on the page, and then we press the delete/backspace button, the selected node got deleted.
The delete button listener shouldn't be attached to the window, but should be attached to the canvas.