Cmd-J opens up a box in which one can enter codes and have them apply to the highlighted text