@Override
	public void onKeyPressed(char key, int keyCode, boolean coded)
	{
		// Tests the functions of the wavsound
		if (!coded)
		{
			// On d plays the sound
			if (key == 'd')
			{
				this.testtrack.play(null);
				System.out.println("Plays a track");
			}
			// On e loops the sound
			else if (key == 'e')
			{
				this.testtrack.loop(null);
				System.out.println("Loops a track");
			}
			// On a stops the sounds
			else if (key == 'a')
			{
				this.testtrack.stop();
				System.out.println("Stops the track");
			}
			// On s pauses all sounds
			else if (key == 's')
			{
				this.testtrack.pause();
				System.out.println("Pauses the track");
			}
			// On w unpauses all sounds
			else if (key == 'w')
			{
				this.testtrack.unpause();
				System.out.println("Unpauses the track");
			}
			// On r releases the track from a loop
			else if (key == 'r')
			{
				this.testtrack.release();
				System.out.println("Releases the track");
			}
		}
	}