I would like to create a little program in Java that runs in the background and that detects a certain combination of pressed keys (in my case the space bar) and that after getting a space bar, sends a ctrl+c and and a to a Prolog console command to abort a prolog command that is going to be running. Would that be possible to be done?
Thanks a lot in advance!