Added key press tracking for "n" and "p" to change "pages".