Just like a keyboard, a webcam is an input device. It captures a video image of the scene in front of it and inputs it into the computer.