The "orientation" without "screenSize" was a clear bug. And now connecting external keyboard doesn't close STK for me anymore.