Updated to support other media buttons and display some debugging info
on-screen and in logs.