Use the WASD keys for rotation (A/D for left/right, W/S for up/down), and the Enter key to reset rotation. You can also use the arrow keys to change the values of p and q.