record wave data at each key press