@Override
	public void keyReleased(KeyEvent e) {

		if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
			dispose();
		}
		if (e.getKeyCode() == KeyEvent.VK_ENTER|| e.getKeyCode() == KeyEvent.VK_SPACE) {
			for (int i = 0; i < 4; i++) {
				rand.chageStat(i, checkbox[i].isSelected());
			}
			scrr.setStrats(checkbox[4].isSelected());
			setVisible(false);
			dispose();
		}
		
	}