A stylus pen is a pen-shaped instrument used to interact with touchscreen devices, providing a more precise alternative to using a finger. It works by mimicking the electrical properties of a fingertip on devices with capacitive screens or by interacting with resistive screens. Many modern styluses offer additional features like pressure sensitivity and palm rejection, and some combine digital functionality with a traditional ink pen in a single tool.