I had an early 2016 that had a keyboard replaced, then a complete replacement under warranty with a new 2017, and I'm sending it away for another keyboard replacement tomorrow. For a work machine, it's pretty ludicrous that I'll have been without my primary computer on 3 separate occasions within 18 months.
The woman in the apple store hinted that if I had to get it replaced more than once, they might just upgrade it to a new one like they did with my 2016 -> 2017.