I have now added an else if statement which covers a keypress event for 'n'