Hi,
Although this is an old post, I'm providing the solution that worked for us in case its of use to anyone else.
To workaround the issue of the map keyboard nav keys operating when not required we disabled the keyboard nav at client side whenever the mouse was outside of the map. [In our case we enabled keyboard nav on the map at server side initially.]
function OnMapCreated(Map1) {
var keyboardControl = Map1.getControlsByClass('OpenLayers.Control.KeyboardDefaults');
// Deactivate initially at client side
keyboardControl[0].deactivate();
Map1.events.register('mouseover', Map1, function (evt) {
keyboardControl[0].activate();
});
Map1.events.register('mouseout', Map1, function (evt) {
keyboardControl[0].deactivate();
});
}
Liam