I know there is a way to get mouse coordinates outside of frames (using MouseInfo). Is there a way to be able to get keyboard input as well? A method that is fired when a key is pressed would be preferred, but if the method has to check for what key is pressed by itself, that also works too. Thanks in advance!
I also am looking for a way to do without installing packages. (so jna wouldn't work)