By that you mean moving?If yes there is an arrow moving system on THW.
Or if you mean spell you could just use "KEybord event-Player Pressed Shift" unit(trigering unit owned by Player X) issuse order to cast X Spell or such :S
If you mean something else,then i dunno what to say![]()
I know that Pirate Tag uses IJKL for movement. Don't think it's open source though; you can always check.
You could try using reinventing the craft although that might be a bit of a hassle.
It's possible if your selecting a unit with four spells, each having a different hotkey (WASD).
Though you cannot detect holding, releasing of the keys. Only pressing. It works by checking if a unit casts an ability, and if the ability is one with one of those hotkeys then the key was pressed.
I made a spacebar detection script, though it only works offline (desyncs multiplayer).
EDIT: I think the pirate tag is protected ;(