Check your bios settings and reset them to their default. Also, in the terminal check the list of hardware via xinput command and enable and disable hardware.
If the suggestions above, including the boot parameters atkbd.reset=1 i8042.nomux=1 i8042.reset=1 i8042.nopnp=1 i8042.dumbkbd=1 do not help, you also can try: