How to walk step by step when we press a keyboard key repeatedly

Hello, guys. I have a problem. I have a game, that the player walk on terrain.
I want the player walk one step when we press keyboard button once. So, when I press keyboard button repeatedly, the walking is step by step like ordinary walking.

Please help me, this is for my school task. Thank you.

So is your question about receiving input, managing input, moving the character, or syncing up animation to movement?