So, i need some help

I want to press a key, and invoke the action of a coresponding button.
So, for instance, if i press the key 1, i would like my jbutton (button[1]) to "be pressed"
Here is the keyboard scanning code i wrote
public void keyReleased(KeyEvent e){
}
public void keyTyped(KeyEvent e){
}
public void keyPressed (KeyEvent e){
keyID = e.getID();
if (keyID == 97 || keyID == 49){
// 1
} else if (keyID == 98 || keyID == 50){
// 2
} else if (keyID == 99 || keyID == 51){
// 3
} else if (keyID == 100 || keyID == 52){
// 4
} else if (keyID == 101 || keyID == 53){
// 5
} else if (keyID == 102 || keyID == 54){
// 6
} else if (keyID == 103 || keyID == 55){
// 7
} else if (keyID == 104 || keyID == 56){
// 8
} else if (keyID == 105 || keyID == 57){
// 9
} else if (keyID == 110 || keyID == 46){
// .
} else if (keyID == 10){
// =
} else if (keyID == 107){
// +
} else if (keyID == 109){
// -
} else if (keyID == 106){
// *
} else if (keyID == 111){
// /
} else if (keyID == 67){
// C
}
JOptionPane.showMessageDialog(null, keyID+" Was Pressed", "Exception Error", JOptionPane.INFORMATION_MESSAGE);
}
My class is
public class CalClass extends JFrame implements ActionListener, KeyListener {
So i have
this.addKeyListener(this);
But when i press a key i am not informed that a key was pressed by the JOptionPane, so i take im not doing something right.
ALSO, once i have it so where its listening for keypresses correctly, how can i get it to "Press" certin buttons for me?
For instance, where my code has //C I would like for it to execute the action that i execute when the JButton calculate = new JButton("C"); button is pressed....
Can anyone offer any guidance?