Fix bug:  should turn off key repeat when the KCMS's canvas, rather than the KCMS itself, gets focus