You can use devices to animate in real-time or to create keyframe animation.
Devices, such as joysticks and mouse, let you animate objects. For example, in the following image, a Mouse device is constrained to Surfer’s eyes to make them rotate.
Mouse device constrained to Surfer’s eyes
You can use many types of devices. See Animating with Devices.