Indeed. It would be helpful to know which board. And you say that the button has a built-in LED? Does it also have a built-in LED resistor? If not, then you will need an external current limiting resistor.
Perhaps you could provide a link to the board and and the button part you are using?