Prevent undo from being used for cheating.