People... let's download and read the DATASHEET!

ADCON1 = 7

Last I looked the 16F628 didn't have A/D Converters and as such doesn't have ADCON Registers - but you might want to correct me on that...

CMCON=7 however is good because this PIC does have Comparators.

Connect your switches between the PICs pins and Vss. Connect pull-up Resistors between the PICs pins and Vdd. 10K is a good value. When the switch is OPEN, the PIC will see a 1 on that pin. When the Switch is Closed the PIC will see a zero.

If you use PortB, you won't need pull-up Resistors because you can enable the PICs weak pull-up's on that Port. Go look in the OPTION Register for Bit 7 to see how to do this.