Programming help - Tilt switches as keyboard

How, EXACTLY, is the switch wired? The internal pullup resistors are not being used; God only knows why not. So, you MUST have external pullup or pulldown resistors. What value, and how are they wired?