Long ago I installed Linux on a MacBook and found it unusable because of clicks and movement while typing. It’s probably improved these days though.
I might have to try their preinstalled Ubuntu images or something and see if there's some secret sauce in the input configs.
> For Linux libinput “Disable While Typing” (DWT) problems, this page claims libinput will only use the DWT setting if the keyboard and touchpad are either both identified as internal devices, or are both identified as the same device.
sudo nano /etc/libinput/local-overrides.quirks
[Framework Touchpad Fix] MatchName=* MatchUdevType=touchpad AttrKeyboardIntegration=internal