In one example, an input pen may include an electronic component, a communication interface to establish a short-range wireless connection with an electronic device, and a controller communicatively coupled to the electronic component and the communication interface. The controller may receive a command from the electronic device via the communication interface. The command may uniquely correspond to an operating mode of the electronic device. Further, the controller may control a power state of the electronic component based on the command.