[Mac] Implement KeyboardHandler