public void unhook() {
   KeyboardEventDispatcher.OnKeyPressed.remove(onKeyPress);
   MouseEventDispatcher.OnMouseRelease.remove(onMouseRelease);
 }
 public void hook() {
   KeyboardEventDispatcher.OnKeyPressed.add(onKeyPress);
   MouseEventDispatcher.OnMouseRelease.add(onMouseRelease);
 }