pipe DOM element keyboard input to a stream