Hi, and thanks for using JustAnswer.com.
Please try this: turn off your computer. Then turn it on, and right after the black screen with white text or the computer company logo disappears, press & release key F8 repeatedly until a menu appears, then you select Safe Mode with Networking (note: if there is no menu, then try the same steps again, but this time, press key F8 a bit earlier). Then login and click Start->all programs->accessories->system tools->system restore and restore the computer to any date before this issue has occurred.
Next, please go to Safe Mode with Networking again, then click below and click on Download Latest Version, to download and install the Malwarebytes Anti-malware software. Then scan your computer:
Please right-click on (My) Computer, then click on Manage, then click on Device manager, then open/expand Keyboards and right-click the item(s) under it and click on Uninstall and confirm. Then restart the computer and check.
If needed, please connect a USB keyboard to the laptop, and see if it affects the USB keyboard also.
Please let me know if there is still any issue later. Thank you.