Finally, I can now move my character. Jumping still has some problems which I will cover it on my next questions. I asked this question on Stack OverlflowOverflow and I was able to fix my problem with the help of a friend. Since the answer is long and it continues with more than 10 comments, I decided to put the link to my question here.