The Gr ( K + Mg ) received , after induction , an intravenous ( IV ) bolus of ketamine 0.2 mg/kg and magnesium 50 mg/kg , followed by continuous infusion of ketamine ( 0.15 mg/kg/h ) and magnesium ( 8 mg/kg/h ) until extubation .