fixed keyboard arrows bug