Clean up volume key handling code.