I assume that you do not want to select another option when you press a key. I believe this is a browser-specific implementation and does not fire an event. What you might need is to create your own simulation using regular elements and jquery. it can get very complicated depending on how crazy you want to get, but here is a small start.
HTML:
<div class="imitateSelect> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div>
CSS
.imitateSelect div{ display:none; }
JS:
$('.imitateSelect div').first().show(); $('.imitateSelect div').on('click', function(){ $(this).siblings().slideDown(); });
etc .. and others.
Another option is to use a plugin like Chosen . See what they did. If you remove the input panel, you will get a selection function, and pressing the keys will not change the selected option.
Evan
source share