detach method
Stops sending them.
Implementation
@override
void detach(bool Function(KeyEvent event) handler) {
FocusManager.instance.removeEarlyKeyEventHandler(_early);
FocusManager.instance.removeListener(_focusChanged);
HardwareKeyboard.instance.removeHandler(_unfocused);
_handler = null;
}