Listen to chnages in the gloabal layout for figuring out when the
IME is activated.