I believe that this is best implemented in the firmware. This means that the user can just plug in the keyboard to any computer, running any OS and get dual-role functionality without spending time on setting everything up correctly.
Nobody has done this yet. Do Matias boards have this feature, or will it become available on future models?