Fixed keymap button toggle behavior.