You’ll see three options:In the Raspberry Pi Configuration tool, go to the Display tab and touch it.Update the package cache of your Raspberry Pi first:

📋

matchbox-keyboard
package.Just check if you already have the on-screen keyboard support
The official documents of SunFounder’s Touchscreen mentions that Squeekboard is installed by default in Raspberry Pi OS but that was not the case for me.Thankfully, the latest versions of Raspberry Pi OS provide a simple way to install and use the on-screen keyboard.Out of these three, you’ll be tempted to go for the ‘Enabled if touchscreen found’.🚧

From Kiosk projects to homelab dashboards, there are numerous usage of a touch screen display with Raspberry Pi.

Getting on-screen keyboard in Raspberry Pi OS Bookworm
Let me show how you can install the on-screen keyboard support on Raspberry Pi OS.It is also possible that it is installed but not enabled. Raspberry Pi OS Bookworm and later versions include the Squeekboard software for the on-screen keyboard feature.

sudo apt install matchbox-keyboard
sudo apt install squeekboard
And it makes total sense to use the on-screen keyboard on the touch device rather than plugging in a keyboard and mouse. sudo apt update
Installing it was matter of one command and then the virtual keyboard was up and running. This is tested on Raspberry Pi OS but since Squeekboard is available for Wayland in general, it might work on other operating systems, too.

If you tap the on-screen keyboard settings and it says, “A virtual keyboard is not installed”, you will have to install the software first. The next section details the steps.
Conclusion
Partner LinkNow, this package may already be installed by default. If you open a terminal and touch the interface and it brings the keyboard, you have everything set already.However, it didn’t work for me. I opted for Enabled always instead.💬 Did it work for you? If yes, a simple ‘thank you’ will encourage me. If not, please provide the details and I’ll try to help you.But not all applications will automatically bring up the on-screen keyboard. In my case, Chromium didn’t play well. Thankfully, the on-screen keyboard icon at top panel lets you access it at will.