The past tense of have a gift for is had a gift for.
The third-person singular simple present indicative form of have a gift for is has a gift for.
The present participle of have a gift for is having a gift for.
The past participle of have a gift for is had a gift for.