There is a bug in OS X and keyboards... try and send your machine to sleep for a moment then wake it back up. If it is this particular bug it will be fixed after that (until next time it happens).