Try:
var something = new js.html.Document();
something.onkeydown = function(e){}.
The addEventListener is probably from nme or openfl.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
:) not that it excuses me, but it was the first thing I got when I searched for haxe js document ^_^