A controller for controlling an electronic device, - the controller comprising an elongate controller body having a first body end and a second body end, - the controller body comprising an elongate rotatable body section adapted to be rotated by a user about a longitudinal axis extending through the first body end and the second body end, - the rotatable body section having a radially outer side surface extending between a first section end near the first body end and a second section end near the second body end, - the rotatable body section having a size and shape allowing the user to rotate the rotatable body section about the longitudinal axis by performing a rolling action using three or more fingers (21, 22, 23), - the controller further comprising a sensing means adapted to detect a rotation of the rotatable body section about the longitudinal axis and to provide a control signal (S c) indicating one or more control commands to the electronic device in dependence on detecting a rotation, - characterized in that the sensing means further is adapted to distinguish between a three-finger rolling action and a corresponding two-finger rolling action and to provide the control signal (S c) in dependence on detecting a three-finger rolling action, - wherein the three-finger rolling action comprising touching a first surface portion of the side surface with a thumb of one hand and touching with the index finger and the middle finger of the same hand respective second and third surface portions (24, 25) of the side surface radially opposite to the first portion, such that the three fingers (21, 22, 23) are aligned mainly laterally with respect to the longitudinal axis and such that the second surface portion extends beyond the first surface portion in one direction along the longitudinal axis and the third surface portion extends beyond the first surface portion in the respective opposite direction along the longitudinal axis, and moving the thumb in its length direction with respect to the index and middle fingers (22, 23). - the controller comprising an elongate controller body having a first body end and a second body end, - the controller body comprising an elongate rotatable body section adapted to be rotated by a user about a longitudinal axis extending through the first body end and the second body end, - the rotatable body section having a radially outer side surface extending between a first section end near the first body end and a second section end near the second body end, - the rotatable body section having a size and shape allowing the user to rotate the rotatable body section about the longitudinal axis by performing a rolling action using three or more fingers (21, 22, 23), - the controller further comprising a sensing means adapted to detect a rotation of the rotatable body section about the longitudinal axis and to provide a control signal (S c) indicating one or more control commands to the electronic device in dependence on detecting a rotation, - characterized in that the sensing means further is adapted to distinguish between a three-finger rolling action and a corresponding two-finger rolling action and to provide the control signal (S c) in dependence on detecting a three-finger rolling action, - wherein the three-finger rolling action comprising touching a first surface portion of the side surface with a thumb of one hand and touching with the index finger and the middle finger of the same hand respective second and third surface portions (24, 25) of the side surface radially opposite to the first portion, such that the three fingers (21, 22, 23) are aligned mainly laterally with respect to the longitudinal axis and such that the second surface portion extends beyond the first surface portion in one direction along the longitudinal axis and the third surface portion extends beyond the first surface portion in the respective opposite direction along the longitudinal axis, and moving the thumb in its length direction with respect to the index and middle fingers (22, 23).