Set the Keynote slide size to match the display or projector being used:
In Keynote: Inspector > Document > Document: in the Slide Size dropdown menu select custom, then enter the pixel dimensions of the display/projector.
The dimensions for the second display are found in: Apple Menu > System Preferences > Displays > Scaled: