I want to get the position of my mouse relative to the frame when I click a shortcut:
@Override
public void handle(KeyEvent keyEvent) {
if (keyEvent.isShortcutDown()) {
if (keyEvent.getCode() == KeyCode.P) {
//Code Here
}
}
}