In a manner that shows intense enthusiasm or excitement. She danced madly around the room when she heard the good news.
In a way that is extremely or excessively. He was madly in love with her, willing to do anything to make her happy.
In a manner that is chaotic or frenzied. The crowd rushed madly towards the stage when the band started playing.