Improved keyboard undo/redo.
Manual modifications of the charge are now also stored in history.