how can i detect the following keypresses without it's getting in action to the browser.

the F4 F6 F7 and F11 key.

when using on keypress its starts messing up my browser

plz ... is there a work around to get it still working
(needed to make an software simulation)

or is this Question to hard?