fixed keyup/down event for mozilla browsers