How can I make WASD animations?

I’m thinking about animating my character for a video game purpose (into Unity). As we all know, movements are controlled with WASD and Space for jump.

How can I animate all of this? Should I make separate .blend files where each contains the specific action like one file contains W (move forward) animation? Or wouldn’t that work when importing it to a game engine and program it?

You will need to make up several animations, Walk Cycle, Run< Crouch…whatever you want the character to do…each needs to be a different one but you need to export as an FBX file ( search exporting animations to Unity) …all the WASD part of thing is Game Specific, and in your case configured in Unity.