Allow states to respond to click events.

This can probably be replaced by a more robust system in the future, but
it will work okay for our current purposes.