vi has three operating modes:
In the vi command mode, each key initiates an instruction. In the text input mode the keyboard functions like a typewriter. And in the ex command mode you can use the 'old' ex line editor to invoke ex commands.
As elsewhere in UNIX, all commands in vi are case-sensitive.