Add q to toggle the pager.

Fixes #5000