Possibility to detect keystrokes in EE?

I would like to make some sort of remote controlled system using the agent. Is it possible without installing an extension?