Programming help - Tilt switches as keyboard

should I be using resistors here?

Yes. The internal pullup ones would be the easiest to use.