How to enter commands in Minecraft via remote keyboard

When streaming from the XBox One to Windows 10, hit the appropriate button on the controller to bring up the chat/console bar. On my system it is the right "arrow" on the left side of the controller. Then immediately hit "A" to edit the command. This should immediately pop up a dialog box on the Windows box that a command can be entered or pasted. (Sometimes this window does not get focus so you may need to click on it to focus it.) If it does not pop this box up, try rebooting the XBox (make sure you go through the green logo screen) and/or Windows. In my case that was the extra step needed to get it to work.