That's correct. The key binding script is a generic script that doesn't have to go on a button. It can go on an input field for example, or can even be used to select units by pressing keys like 1, 2, 3, etc. It wouldn't make much sense for it to check the button's disabled state.
I suggest account for this in your code. In most cases it makes sense to play an error sound anyway.