Hey there balendra178,
Thanks for contacting the Apple Support Communities today.
To get started, is your iPhone only unresponsive in these spots when using your iPhone keyboard? For example, if you open the Calculator app the C and F key would be around the location of the 2 and 0 on the calculator. If you tap on the 2 or 0 does the iPhone respond as expected?
If it doesn't, we'd recommend removing any case and screen protector and test the issue again. This could help rule out any accessories that may be causing issues.
If still running into issues, check out the steps in this next link here for more help: If your screen isn't working - Apple Support
If your screen is too sensitive or responds intermittently to touch
1. Restart your iPhone or iPad.
2. Make sure that your screen is clean and free of any debris or water.
3. Disconnect any Lightning or USB-C accessories. If your screen works after removing an accessory, try using a different outlet, cable, or charger.
4. Remove any cases or screen protectors.
Keep us updated on the results.
Take care.