telnet_keys(): one character at a time is simpler