using internal pullup resistors

I think if you are going to use analog input pins 0-5 as digital input pins you have to refer to them as pins 14-18 in your sketch. And don't blame the hardware it's a software 'feature' to have two aliases for the same physical hardware pins. :wink:

Lefty