An adverb "madly" represents an action done without reason or understanding, angrily, or extremely surprisingly or unexpectedly.