EDIT *changing the batteries seemed to fix it*

I bought a Dell bluetooth keyboard but my macbook won't detect it. The keyboard only has a power switch and a button. I know that it's compatible because I set it up once but now I can't seem to get it to work.