I'm trying to create "software keybord" in java.

So I want to know two things.

1.The name of the class which make the window non active.
2.The way the non active window receives input of...