1. Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft: For Java Edition (PC/Mac), press the T key to open the chat window. For Pocket Edition (PE), tap on the chat button at .