how to hit enter through script

hi everyone i have a simple problem that i can find an answer to, i made my first component and i cant seem to get the focus out of a string box without manually pressing enter

so what im asking is how do i get focus out of string when i click on something else.

Try using FocusControl in combination with SetNextControlName.