Hello, I worte a simple chat program. What I would like to know is how to send a command to the other person's chat window so after the text is sent the cursor goes to the next line. Example:

<text to be sent><move cursor to next line>

Any info would be greatly appreciated