Measuring the polarization of the cosmic microwave background with the Keck Array and Bicep2