fixed onkeypress event for firefox