A stylus pen comprising: a body; a plunger slideably mounted within the body, the plunger being at least partially conductive so that an electrical signal is transmittable through the plunger; a cap coupled to the plunger; a compression spring coupled to the plunger to provide a spring action to the cap, wherein the compression spring is electrically coupled to the cap so that electrical signals can be transmitted out of the cap and propagated back through the plunger; a conductive mechanical switch mounted within the body such that a gap is present between the conductive mechanical switch and the plunger when the compression spring is in a relaxed state, wherein the conductive mechanical switch comprises a first conductive pad, a second conductive pad and a conductive dome-shaped deformable member; wherein the plunger is movable against the compression spring and towards the conductive mechanical switch when a first force is applied to it and the compression spring is in a compressed state, and the conductive mechanical switch can be actuated through the first conductive pad which is electrically coupled to a circuit when a second force is applied by the plunger to the conductive mechanical switch so that the plunger contacts the conductive mechanical switch; and the circuit configured to detect a capacitance formed between the plunger and the conductive mechanical switch, and configured to detect whether the plunger is in contact with the conductive mechanical switch; wherein said circuit is configured to transmit the electrical signal over a conductor, which is coupled to the circuit and to the compression spring, to the cap and through the plunger back to the circuit such that an electrical circuit is completed, when the gap between the conductive mechanical switch and the plunger is closed or a capacitive coupling between an end of the plunger and the conductive mechanical switch is detected, such that a first threshold of pressure is detected by the circuit; wherein, when a further pressure is applied to the plunger towards the conductive mechanical switch, the conductive mechanical switch comes in contact with the second conductive pad and said circuit is configured to transmit the electrical signal through the plunger to the member and through the second conductive pad back to the circuit, such that a second threshold of pressure is detected by the circuit. a body; a plunger slideably mounted within the body, the plunger being at least partially conductive so that an electrical signal is transmittable through the plunger; a cap coupled to the plunger; a compression spring coupled to the plunger to provide a spring action to the cap, wherein the compression spring is electrically coupled to the cap so that electrical signals can be transmitted out of the cap and propagated back through the plunger; a conductive mechanical switch mounted within the body such that a gap is present between the conductive mechanical switch and the plunger when the compression spring is in a relaxed state, wherein the conductive mechanical switch comprises a first conductive pad, a second conductive pad and a conductive dome-shaped deformable member; wherein the plunger is movable against the compression spring and towards the conductive mechanical switch when a first force is applied to it and the compression spring is in a compressed state, and the conductive mechanical switch can be actuated through the first conductive pad which is electrically coupled to a circuit when a second force is applied by the plunger to the conductive mechanical switch so that the plunger contacts the conductive mechanical switch; and the circuit configured to detect a capacitance formed between the plunger and the conductive mechanical switch, and configured to detect whether the plunger is in contact with the conductive mechanical switch; wherein said circuit is configured to transmit the electrical signal over a conductor, which is coupled to the circuit and to the compression spring, to the cap and through the plunger back to the circuit such that an electrical circuit is completed, when the gap between the conductive mechanical switch and the plunger is closed or a capacitive coupling between an end of the plunger and the conductive mechanical switch is detected, such that a first threshold of pressure is detected by the circuit; wherein, when a further pressure is applied to the plunger towards the conductive mechanical switch, the conductive mechanical switch comes in contact with the second conductive pad and said circuit is configured to transmit the electrical signal through the plunger to the member and through the second conductive pad back to the circuit, such that a second threshold of pressure is detected by the circuit.