Handle Input for all pins