Fix mulitple issues in dui/Widget and in dui/KeyNav in order to be to implement keyboard navigation in widgets.

See the comments on the commit to see what is fixed by this pull request.