Some bindings cleanup.
Add an undo variable to disable undo.