Laptop typing a1z instead of 1 and s2x instead of 2

Fixes I have tried: Removed and connected the keyboard to motherboard. Replaced new Keyboard (same problem in both keyboards). USB Keyboard works but its not practical. Installed fresh windows and also installed ubuntu.

USB Keyboard works and Windows reinstalled means there is a hardware error. Cable, connector, motherboard error related to the cable.

Run a complete set of Dell Hardware Diagnostics and also contact Dell Support.

For an older laptop, contact a local repair shop.

Finally, it may be time for replacing the laptop.