I knew about the keyboards when I bought mine, but didn't opt for Apple Care because they're offering a 4 year warranty on the keyboards whether you bought Apple Care or not.
Of all the complaints about the keyboard, the reliability issue with them are real, but also they're the one thing Apple owns up to. When I get the keyboard swapped they often also swap out a new battery for me.