It Don't Hurt is written in the key of B Mixolydian.
According to the Theorytab database, it is the 6th most popular key among Mixolydian keys and the 37th most popular among all keys. The B Mixolydian scale is similar to the B Major scale except that its 7th note (A) is a half step lower. Mixolydian chord progressions are heavily featured in many genres of music like classic rock, which relies on the major chord built on the 7th scale degree.
See the B Mixolydian Cheat Sheet for popular chords, chord progressions, downloadable midi files and more!