To have a knack for/of something means to be particularly good at it e.g. "He has a knack for scoring important goals" See Richard Lester's film 'The Knack...And How To Get It' - one of the male leads is successful with women (he has 'the knack'), while the other male lead is nervy around women (he needs to get 'the knack' so he is more confident around women)