Player Movement

Hey folks,

so i have this simple and working code

float moveX = Input.GetAxisRaw("Horizontal");
float moveY = Input.GetAxisRaw("Vertical");
if (Mathf.Abs(moveX) > 0.1f || Mathf.Abs(moveY) > 0.1f){
        float moveDelta = flySpeed * Time.deltaTime;
        transform.Translate(moveX * moveDelta, moveY * moveDelta, 0, Space.World);

if i press and hold A to move left and then press D to move right without releasing A the player stops moving, same goes the opposite way. my question is, how can i change that behaviour? the player should move the new way.


Use Input.Getkey() instead GetAxis. Cause if A is -1 and D is 1, what is if you have +1-1?