please do not create duplicate posts. i have combined what you have said into one post.
i would also mention that you should be more specific. what keyboard? on a computer or laptop? connected via usb or ps2? is it wireless? does the keyboard work on other computers? what were you doing when it stopped working? does restarting or unplugging/plugging it back in work. if its a wireless keyboard is the battery dead?