using UnityEngine; public class Player : MonoBehaviour { private void Update() { if (Input.GetKeyDown(KeyCode.W)) { Debug.Log("Pressed"); } } }