Rotating camera won’t change movement keys

How do I make the A,D,W,S keys change depending on the camera angle? It would be greatly appreciated if someone could help me with this.

Project -https://playcanv.as/b/wqEn07fI/
Script - https://playcanvas.com/editor/code/769410?tabs=43364001

Hey @cat_cat, and welcome! What do you mean by ‘change’ the keys?

Well, i mean if you try the game, the “W” key is supposed to make you go in the direction you are facing, but instead it is going towards a fixed direction. If you rotate using Q or E you can see.

Oh alright, you need the entity to move via it’s forward axis then. Check out this thread - [SOLVED] Best way to push object along its "forward" axis?.