Hello MonaAlicia,
Thanks for posting in the Apple Support Communities.
It sounds like you're able to search Safari, but can't see what's being typed in the field. Is that correct?
If we understood that accurately, let's be sure you have the latest macOS updates installed as that may improve your experience with searching in Safari. For assistance with updating macOS, take a look at the steps below, but be sure to back up your information first: Update macOS on Mac - Apple Support
Use Software Update
Before installing new software, it's a good idea to back up your Mac.
1. From the Apple menu in the corner of your screen:
• Choose System Settings. Then click General in the sidebar, and Software Update on the right.
• Or choose System Preferences. Then click Software Update.
2. If Software Update finds new software, click the Update Now or Upgrade Now button to install it.
3. Enter your administrator password, if asked. During installation, your Mac might restart, and you might see a progress bar or blank screen several times.
If Software Update says that your Mac is up to date, then no new software is currently available for your Mac model. Software Update shows only updates and upgrades that are compatible with your Mac.
If you have the latest updates installed, let's see if adjusting any Safari search settings change this. Take a look at the following resource for additional information on the settings available, as well as how to adjust them: Customize searching in Safari on Mac - Apple Support
Should this continue to occur, try testing both the built-in keyboard and an external keyboard if you have one available to see if you can isolate this for us.
Have a great day!