internal pull up resistor?

Is this the 'debounce' code/tutorials I see around?

Yes there are lots of these as there are lots of ways of ignoring the the switch in software.