Would you like to
$('.item').click(function(){ $( document.body ).trigger({ type: 'keypress', which: 37, keyCode: 37 }); });
You can, of course, replace document.body with any other node that is associated with a keypress or keydown .
Link: .trigger()
jAndy source share