Disabling alt when on a JFrame?

will a robot work? Or is the key never registered by a keyListener?