Use the console instead of a dedicated window when pressing chat/command keys

Rebased (about 5 times) and tweaked version of @EXio4's old pull request.

This version makes the window only cover 20% of the screen if it's launched with `keymap_chat` or `keymap_command`.  Opening it with `keymap_console` opens it up to 60% size (as it was before).