Add support for switching pages using left/right arrow keys.