just use the if statement once rather for left then right

if(key_cul || key_cur){
cam_angle += key_cul - key_cur; //or (key_cul - key_cur) * 1;
...