undo
undo copied to clipboard
add keypress event handlers
It would be a nice (optional) developer convenience to have a method like addListeners(EventTarget) that adds the relevant keypress events. Something like:
undoManager.addListeners(window); undoManager.removeListeners(window);