Can you boot a mac from an external drive to save me wiping the ssd?
Yes, you can. So you could just install a fresh copy of OS X on an external drive instead of wiping your system. Hold down option at startup to select which drive to boot from.
Alternately, you could hold down command-R to start up in recovery mode, then select the Get Help Online option. This will open Safari while running in a clean, very minimal system. Then just try typing in the address bar. If the problem occurs there, you've proven without a doubt that it's hardware and not software.
You could also try connecting an external keyboard. Then, when the problem happens, try typing on the external keyboard and see if that works just fine. If so, that's also conclusive evidence that it is hardware.
Whether these things will satisfy a by-the-book Genius or not, I don't know. They should, but they may not. If they don't, you should consider that conclusive proof of the ignorance of the Genius! 😁