public void keyPressed(KeyEvent key)
	{
		int code = key.getKeyCode();

		if(code == KeyEvent.VK_LEFT)
		{
			player.setLeft(true);
		}
		if(code == KeyEvent.VK_RIGHT)
		{
			player.setRight(true);
		}
		if(code == KeyEvent.VK_DOWN)
		{
			player.setDown(true);
		}
		if(code == KeyEvent.VK_Z)
		{
			player.setJumping(true);
		}
		if(code == KeyEvent.VK_C)
		{
			player.setWeaponUse(true);
		}
		if(code == KeyEvent.VK_1)
		{
			player.setMegaManType("normal");
		}
		if(code == KeyEvent.VK_2)
		{
			player.setMegaManType("twilightsparkle");
		}
	}