Using another laptop's keyboard as Macbook Pro's input device I have my HP Spectre X360 &amp; a Macbook Pro

The question about using HP Spectre's keyboard as an input device for the Macbook Pro. Is it possible? if yes how?
You can try Synergy: https://symless.com/synergy. I had good results with it in the past .