Hello,<br>I&#39;ve just started learning twisted.<br>I&#39;m trying to build an utility to connect to a tcp port (telnet-like) and exchange messages with an application.<br>I&#39;m using twisted.internet.stdio.StandardIO passing a Protocol to its constructor (I&#39;m tinkering with the dataforward.py example from the twisted book).<br>


I&#39;m adding preprocessing to this utility so that I can check what the user has input before sending it to the peer. So far it is working fine, as I just have to override the method Protocol.dataReceived. But I&#39;m trying to add history of previously input strings and for this, I need to check if the user is pressing control keys (basically &#39;up&#39; and &#39;down&#39; keys, but alt, shift and friends would be nice too).<br>


I&#39;m not sure if this is a twisted related issue, but is it possible to somehow capture these key presses ? (they are not notified to dataReceived)<br>Regards,<br>takeshi