Hello MaryMaryContrary,
We understand you have a keyboard concern on your iPhone. We'll do our best to assist with this.
It sounds like this may be happening in a specific app. Is this occurring in the Apple Messages app or a third-party app?
Do you have additional keyboards on your iPhone? If so, does the issue only occur when you use this additional keyboard? Learn how to remove keyboards here and test it out: Add or change keyboards on iPhone - Apple Support
Add or remove a keyboard for another language
1. Go to Settings
> General > Keyboard.
2. Tap Keyboards, then do any of the following:
- Add a keyboard: Tap Add New Keyboard, then choose a keyboard from the list. Repeat to add more keyboards.
- Remove a keyboard: Tap Edit, tap
next to the keyboard you want to remove, tap Delete, then tap Done.
- Reorder your keyboard list: Tap Edit, drag
next to a keyboard to a new place in the list, then tap Done.
If you add a keyboard for a different language, the corresponding language is automatically added to the Preferred Language Order list. You can view this list and add languages directly to it in Settings > General > Language & Region. You can also reorder the list to change how apps and websites display text.
If this occurs with Apple's built-in keyboard and in a third-party app only, take related steps in: If an app on your iPhone or iPad stops responding, closes unexpectedly, or won’t open - Apple Support
Should the issue continue to occur within that specific app, then it would be best to contact the app developer for further support: How to contact an app developer - Apple Support
Let us know if this helps out or not, take care.