If you are neither able nor allowed to get out of bed, then try to move your legs while in bed. Bicycle motion of the legs and flexing and extending the ankles are such exercises. Doing them ten to twenty times an hour while awake may help prevent blood clots.