If you are using the enhanced input subsystem, you can can do this with no code. Put a ‘Chorded Action’ trigger on the look input: