Just buy a keyboard case for it, no need for permanent attachment. Or carry a tiny bluetooth keyboard in your pocket:
https://www.amazon.co.uk/dp/B0FWC8G2Q8/
Ah, Doohoeek, a time-honored, trusted brand.