replace a rogue kbd tag with code