<p>The present system relates to a device for imparting control to an application program. The device comprises a first sensor for carrying out a brainwave measurement when said first sensor is in contact with a user's head. The device further comprising a second sensor adapted to generate an output signal obtained from a measurement by the second sensor, which can for instance be a gyro sensor or a camera. The device is operable to use the output signal for imparting control to the application program in case the brainwave measurement falls outside a given interval of brainwave measurement values. The present system thus discloses a device that has an increased accuracy compared to the prior art devices.</p>