keyer is a state machine program. It receives events from stdin and produces events to stdout.