Try an external keyboard and mouse, if that works, re-seat the keyboard and touchpad connections. If that does not work, replace keyboard. If that does not work, your motherboard keyboard connections may be bad.
Try an external keyboard and mouse, if that works, re-seat the keyboard and touchpad connections. If that does not work, replace keyboard. If that does not work, your motherboard keyboard connections may be bad.