The invention relates to a pen comprising a refill having a working end, a housing, an
electrical connection device, a cover device, a first movement device for moving the refill relative to the housing between two positions, namely a) a first position in which the working end of the refill is located in the housing, and b) a second position in which the working end of the refill protrudes from the housing, and a second movement device for moving the cover device relative to the
electrical connection device between two positions, namely a) a first position in which the cover device exposes the
electrical connection device, and b) a second position in which the cover device covers the electrical connection device. According to the invention, the first movement device is locked to prevent movement of the refill relative to the housing when the cover device is in the first position relative to the electrical connection device.