Do you have access to any keyboard at all? Even a PC keyboard? If so, you might be able to answer some questions that could help us help you.
Did you spill something on it? if you did, Apple may not feel too kindly about replacing the keyboard for free; you might have to pay for it.
EDIT; why is it working fine now...?