I disagree on the portrait layout. The amount of space used by the keyboards varies by keyboard that is being used. On my 6 yr old phone I can also make my keyboard floating or one handed mode.
The best phone I've had for landscape layout with keyboard was the LG Voyager. I wonder how the newer fold phones handle keyboards on screen.