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

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]

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.