How do I remap the Caps Lock key in Chrome OS?

It turns out that there is a setting for changing the functionality of Caps Lock, but it is hidden unless you have a Chrome external keyboard (e.g. one that comes with a Chromebox).

  1. Navigate to the keyboard settings overlay (chrome://settings/keyboard-overlay)
  2. Right click on "Alt" and choose Inspect Element
  3. Find the line <tr id="caps-lock-remapping-section" hidden="">, double click on hidden, and press delete, so that it reads <tr id="caps-lock-remapping-section">
  4. Press Enter to commit the change
  5. The Caps Lock functionality should now be visible!