Hi Sondie45,
Welcome to Apple Support Communities. We understand that you're having trouble with the keyboard on your device, specifically in Messages. We know it's important to expect consistent behavior when you use the keyboard; we'd like to help. Take a look at these steps:
- Restart your device.
- Make sure your screen is clean and free of any debris or water.
- Disconnect any Lightning or USB-C accessories. If your screen works after removing an accessory, try using a different outlet, cable, or charger.
- Remove any cases or screen protectors.
If part of your screen doesn't respond, responds intermittently, or responds even when it's not touched, contact Apple Support for your iPhone or iPad."
If the screen isn’t working on your iPhone or iPad
Take Care.