first predetermined gesture of gaining control of the electronic device such a gesture may reduce the risk of someone or something controlling the electronic device by mistake e g a person passing by within a sensing range of the sensors 102 104 106 and performing one of the gestures stored in memory 110 by defining a specific predetermined gesture i e the first predetermined gesture for gaining control of the electronic device the risk of such inadvertently control of the electronic device is reduced consequently in response to a first gesture input from the first object 116 being sensed by the at least one sensor the control unit 112 is configured to check whether the first gesture input corresponds to the first predetermined gesture stored in the memory 110 if the gesture input corresponds i e matches with the first predetermined gesture the control unit 112 is configured to approve the first object 116 to gain control over the electronic device it should be noted that the driver 108 control unit 112 and memory 110 may be implemented and located within the electronic device 114 to be controlled the sensor s 102 104 106 may also be located in the electronic device e g a camera in a laptop however it may be advantageous if at least the sensors 102 104 106 are located away from the electronic device 114 to be controlled which increased the flexibility for controlling the electronic device since the gestures do not need to be sensed in vicinity of the electronic device furthermore the driver 108 control unit 112 and memory.