Why wont my code work?

I want to get a character to move about in the 3d world using python to manage the logic bricks.

If I have this logic brick setup:
http://www.pryjon.com/forweb.JPG

And I have this code:
http://www.pryjon.com/forweb2.JPG

I get no error messages but my chracter wont move. If I setup seperate movement controllers for each key the angular and linear velocity works just the way I would like it to except that I want to manage it in code.

There is probably a better way of going about this?

you need to send a pulse to an actuator for it to do anything

you can send both true and false pulses…

GameLogic.addActiveActuator(movement,1)

false pulses in motion actuators stop the motion sometimes [linv, angv… ]

Another problem, you do not need “;” this is not pascal :).
Remove all your “;”.

See Ya.

Maybe this can interest You.
Doc