I want to write a program that performs certain action when certain keys are pressed. The only way I know how to do this requires the java program to opened (or focused at least). How can I keep it running in the background so that it keeps listening regardless of which program/window I currently have open?
EDIT: I'm using Windows