UK here.
I had a 2011 iMac which gpu failed. I got it repaired 3rd party because I thought it was out of warranty. That repair only lasted a little while, like a6 months. I ended up chucking it and getting a replacement windows pc. My mum was using the iMac when the gpu failed, I had the new MacBook 2016 (which I eventually sold to my bro).
Later on I learnt it was a common fault which Apple finally admitted, and because of UK law I could have gotten it repaired under the 6 year warranty.
Its the same thing with the keyboard gate issues. Because it was a defect already in the machine, even if Apple stop their free keyboard replacement program, I’m pretty sure you would still be able to get it under UK law 6 years later regardless.
Hence when I bought my 2017 MacBook last year for £800 new from Curry’s, even though I was frustrated with the keyboard issues on my last MacBook Pro 2016 (which had AppleCare), this time I didn’t bother, making sure to keep the receipt of purchase, because I know I’m covered on this issue up to 6 years if it develops, I.e. 2025.