ListBox.SetFocus

From Xojo Documentation

Method

ListBox.SetFocus()

Supported for all project types and targets.

Gives the ListBox the focus, sending all keydown events to the ListBox.