You can convert the camera's pan to a direction, and multiply the direction by the key:

VECTOR to;
var speed_value;
vec_for_angle(to, camera.pan);
vec_scale(to, key_a * speed_value);