function move_ahead()
{
wizard.x += 5*time_step*;
}


...
while(1)
{
on_u = move_up;
on_i = move_down;
on_z = move_ahead;
on_y = move_back;
wait(1);
}