How to always have keyboard focus on UI widgets?

I came upon this question and I’m also interested to know the answer.