Allow switching output modes in _demos/output.go.

Right and left arrows switch output mode,
up and down arrows similarly.