Take a look at KindomHearts movement code, and with some reading for the manual, you'll improve it.