Fix ValueError in keyboard component output code

Running an experiment from the Builder view using a keyboard component
raised a ValueError because a format string had an error in its syntax.