Move event handler to the player module.