# (MX 04 Pro) Focus a text field

**URL:** <https://forum.kirupa.com/t/mx-04-pro-focus-a-text-field/72996>\
**Category:** flash\
**Created:** [December 11, 2004, 3:15pm UTC](https://forum.kirupa.com/t/mx-04-pro-focus-a-text-field/72996 "2004-12-11T15:15:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashFish](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FlashFish](https://forum.kirupa.com/u/FlashFish)\
**Post date:** [December 11, 2004, 3:15pm UTC](https://forum.kirupa.com/t/mx-04-pro-focus-a-text-field/72996/1 "2004-12-11T15:15:12Z")

</div>

This should be easy enough. I need to select an input text box on keypress, as the mouse will be busy. Ive had a look and found setfocus, but everything i try tells me There is no method with the name ‘setfocus’. So somethin along the lines of

on (keyPress “\<Left\>”){  
myinputbox.setFocus();  
}

or whatever. Thanks in advance.
