if(node == this.textbox){ node = (evt.keyCode == dojo.keys.UP_ARROW) ? this.upArrowNode : this.downArrowNode; } if(count == -1){ this._arrowReleased(node); } else{ this._arrowPressed(node, (node == this.upArrowNode) ? 1 : -1); }