Most of the new keyboards will do this if you have too many keys pushed down at the same time.
The same thing happened to me on my keyboard when playing HL/CS. The keyboard itself cannot register that many keys at the same time. Most of them have a max of 3 or 4 keys pressed at once.
If you have too many down it will beep like that and the last key you pushed won't be registered.