I need a program/library to record all keystrokes (Java preferred). I disassembled a normal keyboard to build a custom interface for certain programs. An interface which provides a physical interface for certain shortcuts. As I need to remap keystrokes depending on the application which is running, a keystroke-logging library is needed.
For example I want to do things like this:
- Key a -> Winamp is running -> b (Next track)
- Key a -> Chrome is running -> Ctrl+T (New Tab) ...
So I do not want to log the passwords of my friends/family...
Cross-platform would be great, but if this is not possible Mac OSX is preferred.