Trouble with N shortcut


#1

I always get the error message but can't find what I'm doing wrong, can someone help? Here's what I have:

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();

        else if(event.which === 110) {
            var currentArticle = $('.current');
            var nextArticle = currentArticle.next();

            currentArticle.removeClass('current');
            nextArticle.addClass('current');
        }
        
    }
});

};

$(document).ready(main);


#2

@kev_lavoiegmail_com,
An IF ELSE-IF statement looks like

if ( condition ) {
    //IF code-block
}
else if ( condition ) {
    //ELSE-IF code-block
}