Added a global keyboard hook.