This article will walk you through the steps to disable vibration when you touch a key on the phone, such as when typing (steps provided are for Android Oreo).
Go to the Sound menu
From the main Settings menu, tap the sub-menu called "Sound"
Go to "Advanced"
Disable "Vibrate on tap"
This will prevent the phone from vibrating when tapped. You can also change other various settings here.