mouse/keyb. movement detection

Hi All !

I hope you can help about this.Anyone know if AIX can monitor (process) keystrokes or mouse moves even when the application is not the active window ?

Thank You.