private void checkForKeyPress() 
	{
		if(moving) {
			if(Mouse.isButtonDown(0) && currentReloadTime == 0)
			{
				
					bullets.add(new Bullet(getX(), getY(), 2, direction, 3, true));
					currentReloadTime = maxReloadTime;
				 
			} 
			if(!Mouse.isButtonDown(0) && currentReloadTime > 0) 
			{
				currentReloadTime--;
				
			}
				
			if(Keyboard.isKeyDown(Keyboard.KEY_W))
			{
				int tempY = getY();
				setY(tempY -= getMovementSpeed());
				direction = PlayerDirection.UP;
				spriteX = 0;
				spriteY = 0;
			}
			if(Keyboard.isKeyDown(Keyboard.KEY_S))
			{
				int tempY = getY();
				setY(tempY += getMovementSpeed());
				direction = PlayerDirection.DOWN;
				spriteX = 32;
				spriteY = 0;
			}
			if(Keyboard.isKeyDown(Keyboard.KEY_A))
			{
				int tempX = getX();
				setX(tempX -= getMovementSpeed());
				direction = PlayerDirection.LEFT;
				spriteX = 0;
				spriteY = 32;
			}
			if(Keyboard.isKeyDown(Keyboard.KEY_D))
			{
				int tempX = getX();
				setX(tempX += getMovementSpeed());
				direction = PlayerDirection.RIGHT;
				spriteX = 32;
				spriteY = 32;
			}
		}
	}