To start off, whenever you are using MouseEvents be sure to write the following in your run method:
addMouseListeners();
This will alert the program to react to MouseEvents. If you are using KeyListeners you'll want to include:
addKeyListeners();
Once you have your listeners all set up, it's time to get to the code! Below is a list of the four events that you may find useful for Breakout. For a full list, check out: this link for MouseEvents and this link for KeyListeners.

public void mouseClicked(MouseEvent e) {
	//this method is called when the mouse is clicked
}

public void mouseMoved(MouseEvent e) {
	//this method is called when the mouse is moved
}
			
public void keyPressed(KeyEvent e) {
	//this method is called when any key is pressed
}

waitForClick(); //this will pause until the user clicks
		

Here are some examples of how to use events:

public void mouseClicked(MouseEvent e) {
	System.out.println("x: " + e.getX() + " y: " + e.getY());
	//This will print out the coordinates of where you click
}

public void keyPressed(KeyEvent e) {
	System.out.println("key pressed: " + e.getKey());
	//This will print out which key was pressed
}