1. Restart the laptop.
2. Touchpad: many laptops have a touchpad on/off key (Fn plus a key with a touchpad icon). Also check Settings, then Bluetooth and devices, then Touchpad.
3. Plug in a USB mouse or keyboard. If they work, the problem is the laptop's own part or its driver.
4. Device Manager: under Keyboards or "Mice and other pointing devices", right-click the device, Uninstall device, then restart.
5. Install the touchpad and chipset drivers from the manufacturer's support site.
6. Some keys type wrong characters? Check the keyboard layout in Settings, then Time and language, then Language and region.
7. Liquid spill? Switch it off immediately and bring it in. Don't turn it on to test it.