There is no e
it should be event
in your markup. i.e javascript:keyPressEvent(event)
<input class="inputField" id="textB" value="" type="text" onKeyPress="javascript:keyPressEvent(event);" onFocus="javascript:clearText(this);" value="This is default text B" />
Also Your quotes are at wrong:-
function goButtonPress() {
alert('Button Pressed"); <-- here quotes should match
}
Fiddle
See events