# \\n In a Text Box not Moving Blinking Cursor Thing

**URL:** <https://forum.kirupa.com/t/n-in-a-text-box-not-moving-blinking-cursor-thing/300066>\
**Category:** flash\
**Created:** [November 15, 2009, 9:01pm UTC](https://forum.kirupa.com/t/n-in-a-text-box-not-moving-blinking-cursor-thing/300066 "2009-11-15T21:01:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jebego](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jebego](https://forum.kirupa.com/u/jebego)\
**Post date:** [November 15, 2009, 9:01pm UTC](https://forum.kirupa.com/t/n-in-a-text-box-not-moving-blinking-cursor-thing/300066/1 "2009-11-15T21:01:57Z")

</div>

I’m making a text box where the user can type in whatever they want, but they can press “Enter” to make a new line. I am using the following code to do this:

```php

function text_box_enter_down(event:KeyboardEvent):void {
    if (event.keyCode==13) {
        if(stage.focus == text_box){
            text_box.appendText("
");
        }
    }
}
stage.addEventListener(KeyboardEvent.KEY_DOWN, text_box_enter_down);

```

It works nicely, making a new line, but it does not move the cursor down to the new line. I’m looking for a way to do this.

Thanks!
