If that application is a Java application, only one component within that application's graphical user interface (GUI) will respond to the keyboard. That is the component that has the focus at that point in time.