Subtle wording preference here: if either key takes a non-boolean value, the input is malformed.