[Simple, yet urgent] If I recieve input, send key.

Hey, how do I achieve this?

psuedo code:

function Update () {
if (Input.GetKey (“left”))
Debug.Log(“left arrow is pressed”);
sendkey(“up”);

}

Basically im trying to make the controller move both forward and the side at the same time when I press the left button. This will also apply to the right one.

Any hints?

Thanks alot!

If I could do like this: Imgur: The magic of the Internet , my problem would be solved also