In Linux this is a solved problem by a very simple measure. The gestures (click by tapping, scrolling) are turned off while you type for a short period of time (around 300ms) after each key-press. It works surprisingly well and I've never noticed the trackpad not working when I need it too.