Code cleanup in KeyboardHook.cs