I'm sure there must be a command one can enter, but of course it must be done before disconnecting the USB keyboard!
maemo-gtk-im-switch xim maemo-gtk-im-switch osso-input-method