VNC Viewer gathers your input (mouse, keyboard, or touch) and sends it for VNC Server to inject and actually achieve remote control.
VNC Viewer is a way for you to access and control your Raspberry Pi desktop from another computer such as a Mac or Windows machine. And the best part is that VNC Viewer is free.
Learn to install VNC Viewer and configure VNC Server on Raspberry Pi