fromCode static method
- String code
Converts a string code
to its corresponding KeyCodes enum value.
Returns KeyCodes.Unknown if the provided code
does not match any known key code.
Implementation
static KeyCodes fromCode(String code) {
return _codeMap[code] ?? KeyCodes.Unknown;
}