I've used a Apple Magickeyboard and a small android eink tablet (in vertical orientation) for some writing and light programming in Termux/Emacs. Very portable setup and distraction-free
I don't really know if an external corded keyboard would draw much more power than bluetooth one (one could argue it'd be less b/c no wireless radio). Would be a bit tricky to confirm
Too bad built-in slider keyboards went the way of the dodo. There are times when the extra screen real estate from not needing an on-screen keyboard can really come in handy (and Termux is one of them).