I've used (and paid a modest amount for) Synergy for years, but I don't know that it's available for Raspberry Pi. I currently use it on Intel/linux, MacOS (and Windows). https://symless.com/synergy Years ago I used x2vnc but I don't know its current status. Hope that helps! John