Added check for last key pressed on dodge