Extract tab id from the sender property of Port object

Connection from "onKeypress" in content scripts.

Message Passing: https://developer.chrome.com/extensions/messaging
Port object: https://developer.chrome.com/extensions/runtime#type-Port