<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" 
  "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg id="hans" width="600" height="600">
<script language="javascript">
<![CDATA[

function keytest(evt)
{
	alert(evt.keyVal);
	alert(evt.virtKeyVal);
	alert(evt.outputString);
/*
	evt.initmodifier(DOM_VK_LEFT_ALT,false);
	alert(evt.checkmodifier(DOM_VK_LEFT_ALT));
	evt.initmodifier(DOM_VK_LEFT_ALT,true);
	alert(evt.checkmodifier(DOM_VK_LEFT_ALT));
	alert(evt.target);*/
}

]]>
</script>
<rect id="jo" onkeydown="keytest(evt)" x="0" y="0" width="50" height="100" style="fill: red"/>
<rect onkeyup="keytest(evt)" x="60" y="0" width="50" height="100" style="fill: red"/>
</svg>