I've tried registering the keyup event in a normal web page using the
exact same HTML that is used inside the panel and it works fine (with
the event only being fired once). I've also tried removing all my
other code, making the only content scripts jQuery and a script that
registers the keyup event but it's still firing the event twice.
I'm not sure if this is a bug related to running jQuery as a content
script or a bug related to Jetpack itself, but I'm pretty sure it's
not any of my code causing the problem.