@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.testsound.play(null);
				System.out.println("Plays a sound");
			}
			// On e loops the sound
			else if (key == 'e')
			{
				this.testsound.loop(null);
				System.out.println("Loops a sound");
			}
			// On a stops the sounds
			else if (key == 'a')
			{
				this.testsound.stop();
				System.out.println("Stops the sounds");
			}
			// On s pauses all sounds
			else if (key == 's')
			{
				this.testsound.pause();
				System.out.println("Pauses the sounds");
			}
			// On w unpauses all sounds
			else if (key == 'w')
			{
				this.testsound.unpause();
				System.out.println("Unpauses the sounds");
			}
		}
	}