If you do not buy AppleCare then after the first year it will be you against Apple in determining if there is a fault they should cover. That said if you buy anything pre-2018 then you know there is a 4-year repair cover on the keyboard if the fault develops.
Buy a new 2018 MacBook and at the moment it's good and without fault, unless it develops the same issues, Apple acknowledge it and extend the 4-year repair cover to it.
Appreciate it's a cost but AppleCare is one of those things from Apple that is actually worth it. Remember you do not need to buy it at the same time as the laptop, you only need to purchase it before the 1-year warranty ends.