The browser on the Pre likes to grab keystrokes and place them in the address bar (unless you are in landscape mode which kind of defeats the use of the physical keyboard. This can be avoided by placing a form in the webpage and then touching the form so as to contain the keystrokes. Actual programmers may find another way to mitigate this issue.
I'm starting to think that the best way to go about this is to make a webOS app that calls up thejsjsjs $from$ $Peter$'$s$ $web$ $page$ $to$ $communicate$ $with$ $the$ $server$. $This$ $would$ $avoid$ $the$ $problem$ $of$ $the$ $address$ $bar$ $hijacking$ $the$ $keystrokes$.
What's cool is that I confirmed thatjsjsjs $can$ $pick$ $up$ $all$ $the$ $characters$ $on$ $the$ $qwerty$ $via$ $this$ webpage.
Special characters that you get from the SYM key are more problematic and may need to be addressed via webpage buttons.
The bottom of this page has a cool keydown / keypress/ keyup test to determine keyCode and charCode when using the Pre's keyboard.
References:
Events and Event Handlers
JavaScript Madness: Keyboard Events
Capturing a Key
JavaScript - Detecting keystrokes