jToolBar1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
jToolBar1KeyPressed(evt);
}
});
...
private void jToolBar1KeyPressed(java.awt.event.KeyEvent evt) {
lbl1.setText("jToolBar1KeyPressed");
}