Answer: A keyboard.
Explanation: A keyboard has keys (like the ones on a keyboard), but it can't open locks unless you press the right key. And it can't move without you (the person pressing the keys).
Note: This is a classic riddle designed to trick people into thinking about the physical properties of a keyboard.