I have a web front-end to an AS/400 CGI application which allows the use of some of the F1-F24 keys (depending on the page) as well as page-up, page-do
You should always return false from event handlers even if you have prevented default by modifying the event, see Quirks mode for more information.