Made tab and shift-tab work in dialogs.
Added keyboard support for the dropdown widget.
Improved keyboard support in the grid widget.