I don't no how to fix it

Attach a USB keyboard and see if the problem persists. If the external keyboard works then replace the laptop keyboard.