How do you use "knack" in a sentence?

Solution 1:

This is really interesting!

In British English, knack of appears to be the more common use according to this Google N-Gram. Knack for is used almost exactly half as much currently, but it has only come into use recently --- previously, knack of very clearly dominated the field. However, both expressions combined have fallen in popularity since 1950.

In American English, according to this N-Gram, knack for appears to have been the preferred form since about 1980, and has been surging in popularity ever since, whereas knack of has retreated further into unpopularity, even though it used to be dominant in American English, like in British English.

In both American and British English, the expression knack to has been highly uncommon since the late 1700s and is likely considered a usage error today. It enjoyed a brief period of popularity in the late 1600s.

I strongly suggest you view the N-Grams I linked to above; they really are very illustrative and informative.