An updated example for a Chrome Extension to handle key presses and handle a music application.