Adaptive Learning, Endogenous Inattention, and Changes in Monetary Policy