How to enter password for decrypt without system keyboard on android
I don't think that the above answer is quite correct as when you enter in "recovery mode" (on an encrypted device) the /sbin/sh pm command can no longer be used since the device needs a password for decryption. (I even decrypt my phone and still could not perform the command :(

Also thinking about it more running that command to re enable a package would open up a security hole for encrypted devices so this command would of run useless on an encrypted device (which is not "decrypted" in the first place)

If you have TWRP installed as your recovery they have their own keyboard layout which you can enter in your decrypt password and then use one of your backups to revert back (which I hope you have done) to recover your keyboard layout.

Otherwise you'll need to install/flash back to your stock rom :(