How would you do this?

The pinMode() function does not set the internal pullups.

It does in 1.0.1, but not like that.

As of Arduino 1.0.1, it is possible to enable the internal pullup resistors with the mode INPUT_PULLUP. Additionally, the INPUT mode explicitly disables the internal pullups.