Combo buttons

I want my 3rd person character to rotate 180 degrees when I press down and A on my controller. How do I code it so that it only happens when I press them simultaneously as opposed to in sequence?

Add a boolean variable to the script that is set if either control is pressed on its own without the other and cleared when both controls are released. Then, only activate the command if both controls are pressed, but the boolean is false.