Fixed Key Listener Focus and applet validity