Just use a USB OTG cable to connect a keyboard to your Android phone. It’s important to remember, though, that some Android devices are incompatible with OTG cables.