Welcome to Android Central! Is this an official Samsung keyboard, or from a 3rd party? Can you pair it with any other Android device? If so, see if the spacebar doesn't work on those devices as well. If that's the case, then the keyboard is probably defective -- contact the seller for an exchange or refund.