Well if it is a new laptop, you need to take it back and get it replaced or contact the manufacturer for the same. A new device should never give you issues.
If you have had it a while, but it is still under warranty, again contact the manufacturer about it being repaired.
Now if you have had it a while, and it is out of warranty, I would suggest the following...
First connect an external keyboard (while the computer is turned off) and then boot up. If that works fine, then do the following.
1. Uninstall the keyboard driver.
2. Reboot the computer (without reinstalling the driver).
3. When it restarts, it should reinstall the driver on its own.
You may also want to try updating the Synaptics Driver if the above doesn't help.
If those don't fix the issue, and the attached keyboard is still acting up, you may need to replace the keyboard.