Apple had issues with some earlier keyboards including the older one I am typing this from right now. They are said to age early under heavy use and miss type commands. The one I use right now feels still perfect. It is on the latest OS version.
Apple changed the keyboards. Current ones don't have these issues anymore.
https://support.apple.com/keyboard-s...-mac-notebooks