に振る舞った

behaved

→ に
phrase Common #6,556
behaved に marks the manner or role someone behaved in; 振る舞った is the past form of 振る舞う.
JA: 彼は大人のように振る舞った。
EN: He behaved like an adult.

その兵士は勇敢に振る舞った。

The soldier acted bravely.

私に公正に振る舞った。

They treated me fairly.

その夜彼女は本当に優雅に振る舞った

She carried herself with remarkable grace that evening.

— レザボア・ドッグス (1992)

彼女は、しとやかに振る舞った。

She behaved demurely.