Using Hook in place of WM_HOTKEY method

Using Hooks is much more reliable than using WM_HOTKEY method as some of
the keys were not working with that and hooks give more control for
things we can do.