Multiple-button detect with an 'input only' pin The 'standard' method of detecting any of multiple push-buttons is to use the 'variable resistance measurement' approach. This relies on using a single pin first as an output - to set a capacitor to a 'known' start voltage (logic 'hi') - and then as an input (to sense when the variable resistance has discharged the capacitor to the 'low' level). The Hi-to-Lo time then reveals the value of the resistance. The resistance can be re-measured multiple times as the PIC can recharge the capacitor by using the pin as an output - so the PIC can also discover how long the button is held down for (especially useful if the button controls movement). However when the PIC pin is an 'input only' things get a bit more complicated.

Using the internal weak-pull-up

Not all 'input only' pins are only inputs :-) For example, the PIC10F206 'input only' GP3 pin can be programmed to enable (or disable) a 'weak pull-up', which is specified as 16-23k (typically 21k at Vdd 5v5). Whilst this allows the pin to source current (for capacitor charge-up) plainly the 'button press' resistance will have to be higher (and the capacitor value rather lower) than 'normal' (when the 'pull Hi' is more than 100x lower, at 180R). Further, the low currents involved makes measurement less reliable as leakage currents etc. have much more effect, however multiple measurements are still possible as the capacitor can still be recharged 'under control'.

Using a second pin to assist

If the input only pin has no internal weak pull-up (or more than half a dozen or so button have to be 'sensed'), it is still possible to use the 'multiple measurement' approach if one of the PIC pins dedicated to some other task can be used to 'assist' the button sense pin. For example, a pin otherwise dedicated to serial transmission can be used when no serial transmission is needed. A diode can be fitted so that when the Tx pin is outputting '1', current flows to 'charge up' the button sense capacitor. When a measurement is needed, the Tx is switched to input with 'weak pull-up' (so the Serial line id still idle = Hi), and the 'input only' pin used to sense how long the button takes to discharge the capacitor. Additional measurements can be made by setting the Tx to output '1' and recharge the cap.

Input only with no recharge

If no second pin is available, then the push-buttons have to be wired up to generate a 'pulse' that can be measured. Typically, the pulse is generated as the button resistance charges or discharges a capacitor - so the time taken gives the resistance value. However, once the stored charge is 'used up', the button has to be released before another 'pulse' can be generated. This means the code only has 'one chance' to detect the button, can't perform multiple measurements to improve 'which button' accuracy and can't discover when a button is being held down. A further disadvantage is that, unless the pin can be set to 'Interrupt' the PIC on a 'state change', your 'main loop' code will need to be checking at frequent intervals.
Using a charged capacitor to generate a '1' pulse
The sense pin is pulled Lo with a 'lowish value' resistor (so 'no button press' = '0'). A separate capacitor is charged up with a 'high value' resistor. When a button is pressed, it connects the (charged) capacitor to the sense pin with a lowish value resistor, so a '1' is seen. Up to half a dozen buttons (each with a different resistor) can be wired to the same sense pin. When the button is pushed (and the charge on the capacitor pulls the pin Hi) the capacitor will discharge via a combination of the push-button resistor and the sense pin 'lo pull' resistor. The Hi time reveals the button resistance. The button has to be released before the capacitor can charge up for another 'sense' cycle. The combination of capacitor 're-charge' resistor and button resistor has to be high enough to allow the sense pin to reach '0' (with it's 'lo pull') after the capacitor has discharged. Sense times can be 'long' as the capacitor has to discharges from Vdd to 0v7 (and the '1' lasts until the capacitor reaches 0v7). Further, a 'sharp cut off' can be achieved by adding a diode between button and sense pin (which also allows the 'charge resistor' value to be lower than otherwise).
Using a discharged capacitor to generate a '0' pulse
The sense pin is held Hi with a high value resistor (so no press = '1'). The capacitor is wired to Gnd with a 'highish' value resistor. The buttons are wired between the sense pin and the capacitor with various 'lowish' value resistors. When a button is pressed, the sense pin is pulled Lo as the capacitor charges up via the button resistance. The Lo time reveals the resistance. The button has to be released (and the capacitor discharged via it's own lo pull) before a second button can be detected Sense times will typically be 'short' as the '0' time ends when the capacitor charge exceeds 0v7.