Programmable keyboard

You mean a hardware keyboard?
You can create a keyboard with Arduino and Bluetooth or with Arduino and the Serial extension via USB/OTG cable.