How computer distinguisehs left and right shift keys?

Answer:
Each key has an associated code number so the computer can check the number to see which key is being pressed. The Scan Code for the Left Shift key is (on a typical USB keyboard) 44 and for the Right Shift is 57.
First answer by Homework Doer. Last edit by Homework Doer. Contributor trust: 268 [recommend contributor recommended]. Question popularity: 1 [recommend question].