Bind on input event, not keydown

This allows mouse editing to trigger a save, and removes the extraneous
saves from modifier keys.

Only implemented for contents, not title, since this would break
titleFix().  Titles can get severely messed up with mouse editing; maybe
we should implement some normalization or prevent that.