text: Add support for control keys to the protocol