fixed wrong keycode in preventdefault thing