Changed KeyListener to MouseListener