changed focusKeyboard API to support tab and arrow key navigation