A locked keyboard is caused by anything from unwittingly pressing the wrong key combo to malfunctioning software or physical blockage.