Some simplification of event capture.

I also moved capture() out of Flags and into Events.Input. Though it is
convenient that flags are copied into localized events, it's a bizarre API
choice to have the action to capture an interaction be on an event's flags.
A bunch of Javadoc fixes.