Added undo/redo key handlers