# use TAB to move to the next control when in a text box

**URL:** <https://forum.xojo.com/t/use-tab-to-move-to-the-next-control-when-in-a-text-box/44123>\
**Category:** General\
**Created:** [June 29, 2018, 12:23am UTC](https://forum.xojo.com/t/use-tab-to-move-to-the-next-control-when-in-a-text-box/44123 "2018-06-29T00:23:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shawn\_Brady](https://forum.xojo.com/user_avatar/forum.xojo.com/shawn_brady/32/1922_2.png) [@Shawn\_Brady](https://forum.xojo.com/u/Shawn_Brady)\
**Post date:** [June 29, 2018, 12:23am UTC](https://forum.xojo.com/t/use-tab-to-move-to-the-next-control-when-in-a-text-box/44123/1 "2018-06-29T00:23:09Z")

</div>

I’m in a text box and type in some text  
I want to use TAB to go to the next control, a button, where you hit ENTER instead of clicking  
If I set AcceptTabs for the text box to either ON or OFF it does not matter, it doesn’t work  
I added Key down for the Text box and used this to evoke TAB, still doesn’t work.  
any ideas

[code] If Key = Chr(9) Then

```
Return True

```

End If[/code]

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [June 29, 2018, 12:28am UTC](https://forum.xojo.com/t/use-tab-to-move-to-the-next-control-when-in-a-text-box/44123/2 "2018-06-29T00:28:02Z")

</div>

This depends on your platform. On Mac controls like buttons and checkboxes do not normally get keyboard focus. There is a system setting to enable this, and Xojo will follow controls around the window in the tab order you define if you enable the system setting.

You will not need to use the KeyDown event if this is done properly.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:15pm UTC](https://forum.xojo.com/t/use-tab-to-move-to-the-next-control-when-in-a-text-box/44123/3 "2020-10-29T19:15:56Z")

</div>


