added dampening factor to horizontal movement to make movement changes more smooth on keyrelease