To get the keyboard back, you need to change the settings of the lock screen: PIN or Password. When those options are active, every time you try to unlock the phone, the keyboard will appear allowing you to enter the password or the PIN. This is the only way to activate keyboard on the lockscreen of the phones. This works for Android and iPhone mobile or tablet devices.