despite the fact that the seagull was many leagues from land , a pesky fly had somehow found its way into hook-beak 's cabin , and the buzzing sound of its wings was just enough to keep the captain awake .