from vpython import * prose = label() while True: ev = scene.waitfor('keydown') prose.text = ev.key print(ev.key, prose.text)