Mouse pad problems on minecraft?

Whenever I play minecraft on laptop, without a mouse connected, when I try to move around with I'm pressing a, s, d, or w my mousepad won't work until like I quit pressing the buttons? But it works fine when I connect a mouse

That's a feature of your laptop, designed to stop you accidentally moving the cursor while you type. There's no way around it unfortunately.