Answer

A Keyboard!

A keyboard has keys that you press to input characters, but these keys don’t open locks like physical keys do. It has spaces between the keys, but it’s not a physical room. And you can “enter” text and commands using a keyboard, but you can’t physically go outside using it.