Disable touchpad while typing
Touchpads on laptops are often located where you rest your wrist while typing, which can sometimes cause accidental clicks while you type. You can disable the touchpad while you type. It will only work again a short time after your last key stroke.
Click the icon at the very right of the menu bar and select System Settings.
Open Mouse and Touchpad and select the Touchpad tab. The Touchpad tab will only be available if your computer has a touchpad.
Select Disable touchpad while typing.