void keyboard_KeyDown(int keyCode)
{
if (keyCode == 31)
{
// Fit View
}
}
I think what may be the issue is the button configuration setting in the 3Dconnexion Control Panel.
To check what is being used start up your application and with it still active and in focus either double click the 3dx icon in the systray or press the right button on the SpaceNavigator. This will open the 3Dconnexion Control Panel.
Please note the control panel is process sensitive. The button assignments for the device are listed in the 'Button Configuration' tab. Changing the assignment for 'L' to button 1 will cause a keydown event for button 1 when the L button is pressed.