Thank you for the hint to the Sailfish Utilities. I removed them some versions ago.
I can confirm that restarting the screen is enough to reenable the keyboard.
I had this bug now the first time after a couple of days. And I still have no idea which app might trigger this.