I believe the word is "madcap."