Context-based key combo handling through directives