fix warning
extend to support map key to mouse
improve config change detect