add wxYield() after SetFocus, make sure the all event will be executed.
wxX11 return keycode by GetKeyCode directly, not support GetUnicodeKey yet