36. Walking and typing must take turns
When the command field owns the keyboard, arrows should edit the line rather than move the character. When the field releases focus, arrows can control the player. This handoff is the part most likely to make a parser game feel broken if it is overlooked.
| Situation | What should happen |
|---|---|
| Walking, then Space | The command field takes focus. Type a command. |
| A printable letter while not typing | The controller opens the graphical command field and inserts that first character. |
| Typing, then Enter | The field submits once and releases focus in graphical mode. |
| Reply open, then Enter | The reply closes; that Enter does not become another command. |
| Typing, then Escape | The field releases focus so movement can resume. |
| Text-only mode | The command field regains focus after each response. |
Figure 23. After closing the reply, the scene is visible again and movement can resume.
Use Arrow Keys rather than WASD when automatic type-to-open is enabled. Otherwise a letter such as W is both the beginning of a command and a movement key. You can support both schemes, but you must decide which behavior takes priority.
