@Override
		public void mouseReleased(MouseEvent e) {
			boolean isSustainEnabled = keyboard.isSustainEnabled();
			Keyboard.SostenutoState sostenutoState = keyboard
					.getSostenutoState();
			if (this != lastPressed) {
				if (!lastPressed.isSostenuto && !lastPressed.isSustaining) {
					lastPressed.stop();
					changes.firePropertyChange("stop", lastPressed.p, null);
				}
			} else if (isSustainEnabled) {

			} else if (sostenutoState.equals(Keyboard.SostenutoState.TWO)) {

			} else if (isSostenuto
					&& sostenutoState.equals(Keyboard.SostenutoState.THREE)) {

			} else {
				stop();
				changes.firePropertyChange("stop", p, null);
			}
			wasPreviouslyClicked = false;
		}