handleIntercept method
Called before children during message dispatch.
Return a Cmd to intercept the message and prevent it from reaching children.
Implementation
@override
Cmd? handleIntercept(Msg msg) {
if (msg is KeyMsg) {
return _handleKeyPress(msg);
}
return null;
}