Is it possible to use the digital OUTs as INs? [SOLVED]

Answer 1:

CrossRoads:
internal pullups:

  Serial.begin(9600);

pinMode(53, INPUT);// assumes switch closure connects pin to Gnd
digitalWrite (53, HIGH);

// IDE 1.0.1 also supports:
pinMode(53, INPUT_PULLUP); // seperate digitalWrite not needed

EXACTLY! that is what I needed!!! I needed the digitalWrite part! The INPUT_PULLUP does not work on pins 22-53 on the Arduino Mega.

My aim is to make a miniature keyboard. (I will need 38 buttons for that :slight_smile: :stuck_out_tongue: )

Where can I get A LOT of cheap miniature buttons?