No, they didn't. First, they pretended the issue didn't exist, while charging people hundreds of dollars for new keyboards. Then, they announced a "quality program", where they'll replace your broken keyboard with another, equally defective one for 4 years. So after the 4 years is up, your keyboard is going to break again, and you'll have to pay again or get a new laptop.
While they did change the keyboard design in 2018, there are still reports that the "improved" keyboard is failing as well: https://www.reddit.com/r/applehelp/comments/9w6vk3/macbook_p... https://www.reddit.com/r/applehelp/comments/9w6vk3/macbook_p... https://twitter.com/kapeli/status/1090640259921166336