"No, this is a bad solution. If you want a repairable machine, buy one."
Fair to push back ... but your assertion implies one of the greater fallacies of free markets.
Free markets don't magically work like that.
When there are only a handful of participants in any given market, they don't provide all the options as we would like.
It's 100% true that Apple makes some 'good tradeoffs' for build quality - but it's also 100% true that they make tradeoffs for vendor lockin.
Lightning connectors are great examples of that.
The answer may be regulation. It depends, and it has to be careful.
While it's a very 'iffy' situation with respect to keyboards, if we move the conversation to 'batteries' you can see how we might want regs that enable some way for consumers to mechanically replace batteries - and definitely 3rd party repair - and plausibly enable standard 3rd party batteries.
These companies have incredibly monopoly and monopoly power, they reason their margins are so high is partly because of demand, but also because of 'market power' which can significantly distort innovation (think apps on iPhone, totally captured market etc).
Unfortunately it's never so easy as 'always regulate or always not'.