The crazed wrestling fan who attacked Bret “The Hitman” Hart during his WWE Hall of Fame speech thought it was “the right moment” to go after the wrestling legend, it was revealed in court Sunday.

“I just felt like it was the right moment,” Zachary Madsen told police, prosecutors said in court.

Madsen allegedly rushed past a barricade and tackled Hart and a WWE security guard during the Hall of Fame ceremony at the Barclays Center in Brooklyn on Saturday night.

Madsen, of Lincoln, Neb., was ordered held on $1,500 bond at his arraignment on assault and criminal trespassing charges in Brooklyn criminal court.

The judge also granted an order of protection against Madsen to Hart and the WWE security guard, Thaddeus Jones.

Madsen was previously busted in September for allegedly stalking mixed martial artist Haris Talundzic, Lincoln Police Department records show.

His lawyer urged the judge not to set bail at his Brooklyn arraignment, arguing he was “agreeable and cooperative” and it would be hard for him to come up with the money.