public void keyPressed(int k)
	{
		if(k == KeyEvent.VK_ESCAPE && (currentState != STARTUP &&
										currentState != MENUSTATE &&
										currentState != CHOOSECHARACTERSTATE &&
										currentState != HELPSTATE &&
										currentState != DEADSTATE &&
										currentState != GAMEOVERSTATE)) 
		{
			if(paused)
			{
				resumePrevious();
			}
			else
			{
				gameStates.get(currentState).keyReleased(-1);
				previousState = currentState;
				setState(PAUSESTATE);
				paused = true;
			}

		}
		
		gameStates.get(currentState).keyPressed(k);
	}