William McKeown was charged with armed robbery, assault and battery with a dangerous weapon, and assault and battery at his arraignment in Eastern Hampshire District Court, Northwestern District Attorney David Sullivan’s office said.

A 19-year-old Framingham man was held without bail Monday on charges that he assaulted a University of Massachusetts Amherst student and stole $120 during a botched drug deal in a dorm on Thursday.

William McKeown of Framingham was arraigned in Eastern Hampshire District Court Belchertown on Monday.

McKeown is scheduled to return to court on Wednesday.

Police believe McKeown and another man known as “Big Al” were let into Pierpont Hall by a friend to sell marijuana to the student, according to the UMass Amherst Police Department. They went to the friend’s dorm room.


The friend told police that McKeown and “Big Al” took $120 from the victim without giving him the marijuana because of a disagreement, and began to leave, authorities said.

The victim followed them into the hallway on the third floor, where he was struck a number of times in the head with a hard object, believed to be a gun, according to police.

Police said they found the student bleeding from the forehead, an injury that was consistent with the shape of the butt of a gun.

Witnesses reported seeing a man fleeing the area carrying what appeared to be a black handgun.

The university issued a shelter-in-place order after the reports. It was lifted two hours later.

McKeown, who is not a UMass student, surrendered to Framingham police Friday after a warrant was put out for his arrest.

J.D. Capelouto can be reached at jd.capelouto@globe.com. Follow him on Twitter @jdcapelouto.