First: When you say you did them with an external keyboard without success, do you mean that the internal keyboard still didn't work when booted into Recovery Mode, and that the keyboard still doesn't work after 2 and 3, or that you couldn't get it to reset PRAM or boot into Recovery Mode? (I don't think you CAN reset the SMC with an external keyboard.)
I'd be in the same mental place as you as far as thinking it's a software problem, but here's the thing:
If the keyboard doesn't work when booted into Recovery Mode, it's not "just" a software problem. That's a completely independent OS from the one you normally use, and has fixed and very limited software. So if the keyboard doesn't work there, it can't be a software problem unless whatever it is will affect every MacOS install on that computer (in which case it's at best a hardware issue prompting a software problem).
You could also try this to confirm: Unplug everything, select "Restart" from the Apple menu with the trackpad, and hold down the Option key. You should get an boot disk select screen. If you don't get this and it boots normally, again, it can't just be a software problem, because that process happens before the OS has even started loading. If they keyboard isn't recognized at that stage, there's something wrong with it.
Yet another thing you could try: Hold down the hardware power button for about 10 seconds. The Mac should hard-power-off without any warning. As above, this is a firmware-level operation and doesn't involve OS-level software, so if it doesn't work then the power button isn't responding to button pushes at all.
One thing I didn't ask is how you're connecting the external keyboard--USB with a USB-C to USB-A adapter, or something else?
Two other things I didn't suggest before:
One, have you tried running Apple Diagnostics? It requires holding down the D key on reboot, and I'm not actually sure whether this can be initiated with an external keyboard if the internal keyboard won't do it, but you can try and it might tell you something if the T1 diagnostics fail or something.
Two, go to About This Mac from the Apple menu, then click System Report... in the window that appears. Go to USB and see what all is in the device tree at the top, and if there's anything unexpected or off-looking in the same tree as the trackpad+keyboard in the detailed list (unknown or missing device or something).
Just to note, it's hypothetically possible, if the keyboard is under the T1 bus, that there's something going awry with the security chip or at the USB controller level that isn't hardware in the sense that it's a broken wire and could change with MacOS or BridgeOS version or something, but isn't really software in the sense that you can just reinstall something to fix it. Resetting the SMC is about the only step you have available to resolve an issue like this, but if they keyboard is unresponsive so you can't, resetting it won't be easy.