Thanks for reaching out, BasicFeatures.
It sounds like you're having some trouble with Universal Control on your two MacBook Pro computers. We can help.
It wasn't clear which model devices you were using, but let's go ahead and make sure you're using compatible devices and that they meet all the necessary requirements as listed on Universal Control: Use a single keyboard and mouse between Mac and iPad:
"Universal Control requires a compatible Mac using macOS Monterey 12.3 or later and a compatible iPad using iPadOS 15.4 or later:MacBook introduced in 2016 or laterMacBook Pro introduced in 2016 or laterMacBook Air introduced in 2018 or laterMac mini introduced in 2018 or lateriMac introduced in 2017 or later, plus iMac (Retina 5K, 27-inch, Late 2015)iMac ProMac Pro introduced in 2019 or laterMac StudioiPad Pro (all models)iPad (6th generation) or lateriPad Air (3rd generation) or lateriPad mini (5th generation) or later
Additional requirementsEach device must be signed in with the same Apple ID using two-factor authentication. Universal Control does not support Managed Apple IDs.Each device must be within 10 meters (30 feet) of each other and have Bluetooth, Wi-Fi, and Handoffturned on. Your iPad must not be sharing its cellular connection and your Mac must not be sharing its internet connection."
Let's confirm the above and use the referenced article to see if there is any improvement.
Keep us posted.