What you'll want to do is call phent_settype and the other setup functions (phent_setmass, damping, etc)- see AUM for examples. Then you'll need a while loop where the keys are checked and phent_addforceglobal is called to push the sphere around. You might find some code snippets by searching in this forum.