Cycles the focus on a single element. Returns -1 if end is reached, or the number of remaining elements that are cycleable in the direction.
Called when an object receives focus.
Called when an object loses focus.
Passes key events to the focused element when not in text editing mode.
TODO: Use this for implement tabbing and etc.