If u can use a button as setEnable(true) it just has focus to the button.
You can try using a ActionEvent with KeyListener.

Whenever a key is stroked ur button condition should become true..
or else it will be in default mode setEnable(false );