How do I parse Arrow Keys from Telnet Client

What do you need help with?

At the moment I can adjust servo position on entering W,A,S,D followed by a carriage return into the Telnet client. I want to be able to read if the keys are being pressed in real time and adjust servo position accordingly i.e. not have to hit 'Enter' after each keystroke.

I hope that clarifies?

edit: formatting