This method sets a new caret position based on the index provided. The position
must be within the range of characters present. Once the caret is set, user input is
inserted from this point.
var editBox = scene.getBoxById("customEdit");
if (editBox)
{
editBox.setCaretPos(0);
}