onkeypress --> onkeydown
stop using global dijit object