Help with walk/stop stuff -flaincluded

Hey heres my char in the game im creating and im having trouble for him to stop moving after a key is released. Take a look at the code, which is all on the main guy. tell me what im doing wrong-go easy on me.