code: function handleKeyboardKeys(e) {
          var kc = e.keyCode || e.charCode;
          if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) return;
          if (kc === 37 || kc === 39 || kc === 38 || kc === 40) {
              var inView = false;
              //Check that swiper should be inside of visible area of window
              var swiperOffset = _this.h.getOffset(_this.container);
              var scrollLeft = _this.h.windowScroll().left;
              var scrollTop = _this.h.windowScroll().top;
              var windowWidth = _this.h.windowWidth();
              var windowHeight = _this.h.windowHeight();
              var swiperCoord = [
                  [swiperOffset.left, swiperOffset.top],
                  [swiperOffset.left + _this.width, swiperOffset.top],
                  [swiperOffset.left, swiperOffset.top + _this.height],
                  [swiperOffset.left + _this.width, swiperOffset.top + _this.height]
              ];
              for (var i = 0; i < swiperCoord.length; i++) {
                  var point = swiperCoord[i];
                  if (
                      point[0] >= scrollLeft && point[0] <= scrollLeft + windowWidth &&
                      point[1] >= scrollTop && point[1] <= scrollTop + windowHeight
                  ) {
                      inView = true;
                  }
  
              }
              if (!inView) return;
          }
          if (isH) {
              if (kc === 37 || kc === 39) {
                  if (e.preventDefault) e.preventDefault();
                  else e.returnValue = false;
              }
              if (kc === 39) _this.swipeNext();
              if (kc === 37) _this.swipePrev();
          }
          else {
              if (kc === 38 || kc === 40) {
                  if (e.preventDefault) e.preventDefault();
                  else e.returnValue = false;
              }
              if (kc === 40) _this.swipeNext();
              if (kc === 38) _this.swipePrev();
          }
      }
docs: /*==========================================
  Keyboard Control
  ============================================