What happened
The FAA’s narrative, in sentence case. The FAA writes it in capitals and removes private details.
(-23) After landing, the flight instructor directed the student to continue with a takeoff (touch and go), which had not been planned beforehand. As they commenced to accelerate, the instructor inadvertently selected the landing gear switch to the "up" position, although he had meant to retract the wing flaps. The nose gear and right main landing gear retracted, causing the aircraft to swerve off the runway to the righthand side.
As the FAA filed it
(-23) AFTER LANDING, THE FLIGHT INSTRUCTOR DIRECTED THE STUDENT TO CONTINUE WITH A TAKEOFF (TOUCH AND GO), WHICH HAD NOT BEEN PLANNED BEFOREHAND. AS THEY COMMENCED TO ACCELERATE, THE INSTRUCTOR INADVERTENTLY SELECTED THE LANDING GEAR SWITCH TO THE "UP" POSITION, ALTHOUGH HE HAD MEANT TO RETRACT THE WING FLAPS. THE NOSE GEAR AND RIGHT MAIN LANDING GEAR RETRACTED, CAUSING THE AIRCRAFT TO SWERVE OFF THE RUNWAY TO THE RIGHTHAND SIDE.