How do I make my penis curve upward slightly?

You can't. Your penis is just as it is. You may develop a problem that will curve your penis, but you cannot and you should not try to do this. Leave it alone, the way it is and use it for the purposes intended and it will serve you well. Doing more will only cause you emotional, psychological and physical harm. It is as it is.