Controlling 40 solenoids, 2 pumps, 2 servos, and a few sensors

input keypad?

There are several ways to do this. Are you referring to a 4x4 matrix ? I did one using the 74hc922 keypad encoder chip but you would probably be better off with a simpler solution.
Take a look at the link "ONEWIRE KEYPAD" in this post.
http://forum.arduino.cc/index.php?topic=237226.new;topicseen#new