Typing command should bring up a popup of available operations that can be performed contextual to the cursor's position. Continuing further by typing the keyword for the operation to be performed and hitting enter should perform the operation.

Some examples are adding bold formatting to text, changing regular text into headers, inserting images etc.

(Refer to Notion for ideas on this implementation.)