go with:
if(key_cur || key_cul)pXent_addforcecentral(ball, vector((key_cur-key_cul)*0.1, 0, 0));
89
Why should that be faster? Should be similar to
if(key_cur)pXent_addforcecentral(ball, vector((key_cur-key_cul)*0.1, 0, 0));
if(key_cul)pXent_addforcecentral(ball, vector((key_cur-key_cul)*0.1, 0, 0));
and that would need more calculating than the second code version I posted.
or do you have to call the function ten or hundred thousand times per frame?
That's a good point

The discussion is just focus on the question of the best and fastest coding algorithm you can do in general.
...cause if you have a really long program code with a lot of whiles it could become important if you use all the time the fast or slow method. Even if you use commands which are marked with "speed: slow" like c_move!