Some apps, like Firefox (as covered in this question) don't trigger the on-screen keyboard. I have had other situations, e.g. when switching between apps and in LibreOffice (which is an X app, but like Firefox ships with Ubuntu Touch).
Is there a manual switch can somehow be invoked to toggle the onscreen keyboard?