fix remove event in KeyboardManager.register_events
fix remove event in KeyboardManager.register_events

only call enable on remove when focused.

fixes a bug where command mode could be entered inappropriately
when non-focused elements are removed from the page
(see first `@interact` example).
ipython/ipython,ipython/ipython