Note, the file can’t have a trailing newline, and there is a single space before KEYBOARD_KEY - once I fixed those and ran the two commands again, I got pipes and backslashes immediately - thanks!
If you’re running qubes, do this in the dom0 terminal. All other vms will be affected immediately.