When a keyboard had no arrow keys

On early computer terminals, moving through text depended on the keyboard’s limited set of keys. Some keyboards lacked dedicated arrows, so text editors assigned navigation jobs to letter keys. In a familiar scheme, holding Control and pressing P moved to the previous line; Control-N moved to the next. Other control-letter commands could move left or right.

The trick worked because Control changed how the computer interpreted a key. Instead of inserting an ordinary letter, the keyboard sent a control code that the editor could treat as a command. The letter itself was a mnemonic: P suggested “previous,” N “next.” The exact assignments depended on the software, rather than being a universal feature of every early keyboard.

A shortcut that outlasted the hardware

Once users learned these combinations, they could navigate without reaching for a separate cluster of arrow keys. That mattered on compact terminals and in editors designed around rapid keyboard use. The commands also became part of a user’s muscle memory, so they persisted even as keyboards gained dedicated navigation keys.

That is why Control-P and Control-N can still move between lines in some text-editing environments today: a workaround for missing keys became a lasting interface convention.