I found this on an old thread from this site:
@script
void self = getlocalvar("self");
int pindex = getentityproperty(self,"playerindex");
void moveright = playerkeys(pindex, 0, "moveright");
void moveleft = playerkeys(pindex, 0, "moveleft");
void moveup = playerkeys(pindex...