Need some help, this is my school project, I never did unity before.
It would be best to post the code you are using. It looks to me that the W key is applying an upward force on a non-kinematic object with gravity turned on. This would explain why the object rises and then falls. I would also help if you explained what kind of movement you would like to see happening when you press the W and S keys.