Media Control Keys

Is there any way to control media currently playing on the system using keys like play, pause, next, prev, vol up, vol down, etc.