Hmm, `switch` with only one case looks like an overkill. Why not a simple `if (inEvent.which ===1){ this.doItemDown(inEvent); }` ?