How to implement input buffer with the enhanced input system like Elden Ring.

How to implement input buffer with the enhanced input system like Elden Ring, or if another way to achieve it?