The correct form is “The key to becoming an expert….” The reason is that key should always be followed by a noun, and becoming is a gerund, or noun form, of the verb become.
Here are some additional sentences with key followed by a noun:
The noun secret, which is a synonym for key, behaves the same way:
However, the noun way, which is another synonym for key, should be followed by a verb rather than a gerund, even though it can be followed by other kinds of nouns:
So unfortunately, there doesn't seem to be a general rule that you can follow to remember whether you should use a gerund or a verb after nouns like key, secret, and way. My advice is to remember an example sentence for each one.