public boolean handleEvent(Event event) {
        if (event.id != event.ACTION_EVENT) {
            return super.handleEvent(event);
        } else if(event.target==engineOn) {
            car.engineOn();
            control.engineOn();
            return true;
        } else if (event.target == engineOff) {
            car.engineOff();
            control.engineOff();
            return true;
        } else if (event.target == accelerate) {
            car.accelerate();
            control.accelerator();
            return true;
         } else if (event.target == brake) {
            car.brake();
            control.brake();
            return true;
         } else if (event.target == on) {
            control.on();
            return true;
         } else if (event.target == off) {
            control.off();
            return true;
         } else if (event.target == resume) {
            control.resume();
            return true;
         } else
            return super.handleEvent(event);
    }