MOV A,P1<b><i>; as the PORT 1 is made as an input PORT so all the bits are high ... the key pressed bit will be low so the value is transfered to ACCUMULATOR for further processing</i></b>