Curtailing the king 's powers was a key demand during last month 's pro-democracy protests , which forced King Gyanendra to give up total control of the government and reinstate parliament .