Button with led (how to connect?)

let me see if I understood, by putting a small resistor on the INPUT PIN you will force the current trough there when the button is not pressed? I am not sure I got that right.

you mean exactly like the attached picture?