[INTERNAL] m.Switch: do not process keyboard event when disabled

- don't process keyboard event when the control is
disabled (refactoring)

Change-Id: I812d6dc8d3d3f84d1f1ed028c2425e57f024d76d
CR-Id: 012003146900009464062014
(cherry picked from commit 16baa6232a7634947022678f2eb405679da6187d)
Merge "[INTERNAL] m.Switch: do not process keyboard event when disabled" into rel-1.26