public void keyPressed(KeyEvent key){
		
		switch (key.getKeyCode()){
		case KeyEvent.VK_UP:
			player.moveY(-1);
			break;
		case KeyEvent.VK_LEFT:
			player.moveX(-1);
			break;
		case KeyEvent.VK_RIGHT:
			player.moveX(1);
			break;
		case KeyEvent.VK_DOWN:
			player.moveY(1);
			break;
		case KeyEvent.VK_E:
			collision.checkInteractCollision();
			break;		
		case KeyEvent.VK_SPACE:
			player.primaryAttack();
			collision.checkAttackCollision(player);
			break;
		}
	}