unity keyboard input right arrow code example Example 1: unity up arrow input Input.GetKeyDown("up") Example 2: unity getkey keycode Input.GetKey(KeyCode.Space))