Frantically has 2 different meanings across 1 category:
Adverb
in an uncontrolled manner
"she fought back madly"
In a frantic way.