What am i doing wrong for O shortcut


#1

var main = function() {
$('.article').click( function() {
$('.article').removeclass('current');
$('.description').hide();

$(this).addclass('current');
$(this).children('.description').show ();
}
$(document).keypress(function(event) {
if(event.which === 111) {
$('.current').children('.description').toggle();
};
});
$(document).ready(main);


#2
var main=function() {
     $('.article').click(function() { 
     }); 

     $(document).keypress(function(event) {
     });
   };
  $(document).ready(main);

In our main function we are defining 2 Event-handler
1 a click Event-handler attached to all articles
2 a keypress Event-handler attached to the whole document