I have this code for redirecting when a key is pressed:
$('body').bind('keyup', function(event) {
    if (event.keyCode == 66) { 
        window.location = "page.php"; 
    }
});
I have this but repeated for about 10 different keys.
My question is, how can i make it not applicable if the user has text highlighted with the mouse- example, if he is copy or pasting with CTRL+C or CTRL+P.