define(["marionette", "hbs!templates/layout/content"], function(Marionette, template) {

  return Marionette.ItemView.extend({
    el: "#content",
    template: template,

    keyboardEvents: {
      'command+up': 'channelUp',
      'command+down': 'channelDown',
      // debug
      'command+d': 'debug',
      'command+r': 'reload'
    },

    channelMove: function(direction) {
      var current = $('li.channel-item.selected');
      if (current.length <= 0) return false;

      var next = current.next();
      var prev = current.prev();

      current.removeClass('selected');

      if (direction === "down") {
        if (next.length > 0) {
          next.addClass('selected').click();
        } else {
          $('li.channel-item:first').addClass('selected').click();
        }
      } else {
        if (prev.length > 0) {
          prev.addClass('selected').click();
        } else {
          $('li.channel-item:last').addClass('selected').click();
        }
      }
    },

    channelUp: function(e) {
      e.preventDefault();
      this.channelMove('up');
    },

    channelDown: function(e) {
      e.preventDefault();
      this.channelMove('down');
    },

    debug: function() {
      Komanda.vent.trigger('komanda:debug');
    },

    reload: function() {
      window.location.reload();
    }

  });

});

@@ -88,88 +88,65 @@
 %0A%0A  
-return Marionette.ItemView.extend(%7B%0A    el: %22#content%22,%0A    template: template,%0A
+var keyboardEvents;%0A  if(process.platform === 'darwin') %7B
 %0A   
@@ -160,17 +160,18 @@
 rdEvents
-:
+ =
  %7B%0A     
@@ -278,16 +278,16 @@
 debug',%0A
-
       'c
@@ -305,16 +305,626 @@
 'reload'
+,%0A      'command+w': 'channelClose'%0A    %7D;%0A  %7D else %7B%0A    keyboardEvents = %7B%0A      'ctrl+up': 'channelUp',%0A      'ctrl+down': 'channelDown',%0A      // debug%0A      'ctrl+d': 'debug',%0A      'ctrl+r': 'reload',%0A      'ctrl+w': 'channelClose'%0A    %7D;%0A  %7D%0A%0A  return Marionette.ItemView.extend(%7B%0A    el: %22#content%22,%0A    template: template,%0A%0A    keyboardEvents: keyboardEvents,%0A%0A    channelClose: function(e) %7B%0A      e.preventDefault();%0A%0A      var current = $('li.channel-item.selected');%0A      if (current.length %3C= 0) return false;%0A%0A      current.removeClass('selected');%0A%0A      current.find('.part-channel').click();
 %0A    %7D,%0A

Use ctrl key for windows/linux keyboard shortcuts, and add shortcut for closing tab