if you use:
dist.x=(runspeed*key_cuu)+(runspeed_backwards*key_cud); //key_... are the arrows
you have to write then:
dist.x=(runspeed*key_w)+(-runspeed_backwards*key_s);
if you use:
on_key_cuu=move_frontwards;
FUNCTION move_frontwards
{dist.x=runspeed;}
you have to write then:
on_key_w=move_frontwards;
FUNCTION move_frontwards
{dist.x=runspeed;}
I hope you know how I mean this...
