The "WASD" keys not working in Unreal Engine can be caused by several issues:
Input Bindings: Unreal Engine uses an input binding system to map keyboard keys to actions in the game. If WASD is not working, it could mean that the bindings for these keys have been altered or removed.
Player Controller: The Player Controller class may not be properly configured to accept input or might be missing the action mappings for movement.
Game Mode Configuration: The Game Mode dictates which Player Controller is being used. An incorrect Game Mode configuration might result in input not being processed.
Focus Issues: If the editor or the game window does not have focus, keyboard inputs will not be detected.
Blueprints/C++ Code Errors: Mistakes in Blueprints or C++ code related to input processing can prevent the WASD keys from functioning correctly.
Corrupted Project Settings: Occasionally, project settings can become corrupted causing default functionality like basic movement input to fail.
Solution - Here's How To Resolve It
Follow these steps to troubleshoot and resolve the issue:
Check Input Bindings:
Open Edit > Project Settings > Engine > Input and ensure that the Action Mappings and Axis Mappings include WASD with the appropriate actions.
Verify Player Controller:
Confirm that your Player Controller class has the necessary input functions bound to handle the WASD keys.
Check if you're overriding any input functions without calling the base function.
Ensure Correct Game Mode:
In the World Settings, make sure that you have the correct Game Mode selected that points to the Player Controller responsible for handling input.
Click on the game window to ensure it has focus when playing in the editor.
If running a standalone game, ensure the game window isn't losing focus upon launch.
Review Blueprints/C++ Code:
Inspect any custom Blueprints or C++ code for errors that could interfere with input processing.
Look for nodes or code segments that deal with input and validate their logic.
Reset Project Settings:
As a last resort, you can reset your project settings. Back up your configurations before proceeding with this step.
Navigate to Edit > Project Settings and carefully reset to default settings where relevant, especially under the Input section.
If none of these solutions work, consider checking the Unreal Engine forums or submitting a question with specific details about your setup for community support.