modifying the keycode logic, so that it only prevents default for defined  keycodes and allows others