RECORDING YOUR MOUSE MOVES in graph editor  

-to get a handheld object or camera movement there is something called a Record Node in MEL....Try first with just sphere...enter this bit of MEL in any editor...

sphere;

createNode record;

connectAttr nurbsSphere1.ty record1.input;

-set playback speed in Animation Preferences to 15fps (to avoid out distancing the record process). Begin capturing by typing this...

play -record;

-now mover the mouse erratically in order to (moves the sphere in Y translation)

-after a few seconds, hit Esc to stop recording and see the resultant curve in the Graph Editor. You can use any other attributes you want in the script to have random looking animation. You can can, of course, cut and past the recorded curves to other attributes or have concurrent connections (in connection editor, SDK, etc)

the above script will, of course, only record the Y movement...to record X, Y, and Z translations, try this...

//if the sphere is already there from last time, skip the next line//

sphere;

createNode record;

connectAttr nurbsSphere1.ty record1.input;

createNode record;

connectAttr nurbsSphere1.tx record2.input;

createNode record;

connectAttr nurbsSphere1.tz record3.input;

this could be written more elegantly; morevover feel free to add, scale, rotate, or whatever imaginable..as it can be connected and recorded.