I think you are asking about virtual keyboard on Mac
You can show it by doing this:
- Open System Preferences and go to “Keyboard”, and look under the “Keyboard” tab
- Check the box next to “Show Keyboard & Character Viewers in menu bar”
- Pull down the newly visible Keyboard menu and choose “Show Keyboard Viewer”
- Place the keyboard on screen in the desired location, and resize the newly visible keyboard as necessary by dragging the corners
More screenshots by the link provided.