Cmd Mode Function Key The Cmd Mode function key is available when you are in visual mode. It is used to return to command mode from visual mode without closing the current edit, read, or listing file. To return to visual mode, use the EDIT, READ, or LISTING commands or function keys.