in javaFX, the when a keyboad is pressed, the event handler method is caled and a KryHit event is passed to the handler code example Example: mouse handler javafx public final double getY()