Detecting Keypress or Keystokes

Is there anyway of detecting keyboard activity with traditional Applescript ?

I was going to ask this question on the ApplescriptObjC forum, as I suspect there is a way of doing it in Xcode, but I need an invisible script or app running in the background.

Thanks in advance

Regards Mark


Vanilla AppleScript cannot respond to keyboard or mouse events.

AppleScriptObjC can

I suspected that was the case, but appreciate you confirming that for me Stefan.

Regards Mark