fn key_to_bytes( code: &KeyCode, modifiers: Modifiers, text: Option<&str>, ) -> Vec<u8> ⓘ
Encode a key with its modifiers and optional composed text.