Hi,

the problem is that you can only move entities with c_move, therefore you have two options:

camera.x+=(key_w-key_s)*5*cos(camera.pan); // 5 is the move speed
camera.y+=(key_w-key_s)*5*sin(camera.pan);

This code updates the camera position manually but does not use collision detection, i.e. the camera can move through walls.

The second option would be to create an entity, make it invisible, move and rotate that entity with c_move and c_rotate and put the camera position/angle at its position/angle.
Hope that helps, best

Stefan