key press up unity

Code Example - key press up unity

                
                        Input.GetKeyDown(KeyCode.UpArrow)