Fixing animation weirdness when holding arrow key down