matches method
Checks if this binding matches the given event.
Implementation
bool matches(KeyEvent event) {
if (!keys.contains(event.type)) return false;
// For char events, also check the character matcher
if (event.type == KeyEventType.char && charMatcher != null) {
return event.char != null && charMatcher!(event.char!);
}
return true;
}