An apparatus and a process for keying a pair of pins (11) on a roller (18) of a roller mill for grinding cereals, including: a cooling device for cooling the pins; a roller supporting body (19), which allows the roller to rotate about a substantially horizontal axis that lies at right angles to a longitudinal axis (21) of the roller; and a transfer device for transferring the pins from the cooling device to the roller. <IMAGE>