I am currently in the process of creating a Onscreen keyboard. I am handling the button click using routedcommands. The issue is that when i click on the button in keyboard
To set logical focus to an input control
FocusManager.SetFocusedElement(this, textboxJack); // set logical focus
To set keyboard focus to an input control
Keyboard.Focus(textboxJill); // set keyboard focus
To know the difference between logical and keyboard focus
Input Overview - Focus on MSDN