Does your keyboard make a beeping/click sound when typing on the keyboard? Or, are you hearing the sound only when pressing specific buttons on the keyboard?
If you have trouble using a keyboard with your Mac, there are quite a few accessibility features that can help you out. Here's what you need to do to enable them.