processInput() correctly identifies all commands