public void keyPressed(KeyEvent e)
	{
		
		
		if(e.getKeyCode() == KeyEvent.VK_I)
		{
			health += 2;
		}
		
		
		if(preventMovement == false)
		{
			if(e.getKeyCode() == KeyEvent.VK_W || e.getKeyCode() == KeyEvent.VK_UP)
			{
				direction = "U";
				keyheld = true;
				yVel = - speed;
			}
			if(e.getKeyCode() == KeyEvent.VK_A || e.getKeyCode() == KeyEvent.VK_LEFT)
			{
				direction = "L";
				keyheld = true;
				xVel = - speed;


			}
			if(e.getKeyCode() == KeyEvent.VK_S || e.getKeyCode() == KeyEvent.VK_DOWN)
			{
				direction = "D";
				keyheld = true;
				yVel = speed;


			}
			if(e.getKeyCode() == KeyEvent.VK_D || e.getKeyCode() == KeyEvent.VK_RIGHT)
			{
				direction = "R";
				keyheld = true;
				xVel = speed;


			}
			if(e.getKeyCode() == KeyEvent.VK_J)
			{
				keyheld = false;
				attack = true;
				preventMovement = true;

			}
			if(e.getKeyCode() == KeyEvent.VK_K)
			{
				keyheld = false;
				defend = true;
				preventMovement = true;
			}
		}

		if(preventMovement == false)
		{
			updatePosition();
		}


	}