Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Usually, yes—but not literally everywhere. Current desktop browsers can receive Play/Pause and other hardware media-key events, even when the browser tab is in the background. Whether a key works depends on the operating system, browser, the site’s media player, and which app or tab currently owns the active media session.

What counts as a media key?

Media controls include Play/Pause, Next Track, Previous Track, Stop, seek buttons, and dedicated headset buttons. Volume and mute keys are often handled directly by the operating system. Laptop function-row controls may require holding Fn, or may switch between function keys and media keys through firmware, BIOS, ChromeOS, macOS, or manufacturer settings.

How browser media keys work

The control path is:

Keyboard or headset
        ↓
Operating system
        ↓
Browser media-session handling
        ↓
Active web page or media session
        ↓
HTML audio/video element or site player

Chrome documented desktop hardware-media-key support beginning with Chrome 73. Firefox also documents keyboard and headset controls for web audio and video. The underlying Media Session API lets a page respond to platform controls and provide metadata. The current W3C document remains a Working Draft, and MDN classifies the API as limited availability, so this is broad support rather than a universal guarantee.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Which keys work automatically?

Key Typical behavior
Play/Pause Most likely to work with a standard HTML <audio> or <video> element. Chrome says basic play and pause can be handled automatically.
Next/Previous Usually requires the website to register nexttrack or previoustrack. A single video or player with no queue may have nothing to do.
Seek forward/back Depends on the site registering seek actions and implementing them correctly.
Stop Not consistently implemented; many sites expose pause instead.
Volume and mute Often handled by the operating system, headset, or keyboard firmware rather than the webpage.

A site can register actions such as:

navigator.mediaSession.setActionHandler("play", () => player.play());
navigator.mediaSession.setActionHandler("pause", () => player.pause());
navigator.mediaSession.setActionHandler("nexttrack", () => playNext());

If a service does not register track-navigation or custom actions, the browser cannot invent a playlist operation for it.

#1 Best Overall
X9 Wired Ergonomic Keyboard - Comfortable Typing - Ergonomic Full Size USB Keyboard with Wrist Rest, Number Pad, Multimedia and 114 Keys - External Computer Keyboard for Laptop, Desktop and Office PC
  • TAKE CONTROL OF YOUR MEDIA - Enjoy dedicated multimedia keys. Easily control your music, video, and more with a wired keyboard with volume control and playback keys.
  • TYPE IN COMFORT - Our desktop keyboard features an integrated wrist rest for extra support during long hours of typing. Also an adjustable kickstand allows for optimal angles.
  • JUST PLUG AND PLAY - Just plug the 5ft USB-A cable in to being typing instantly. Easy plug and play pc keyboard and chromebook keyboard with no additional software needed.
  • FULL-SIZE KEYBOARD - With 114 quiet keys featuring 10 multimedia keys and 14 shortcut keys, you can perform any type of work making it the ideal office keyboard or external keyboard for laptop or computer.
  • WHAT YOU'LL RECEIVE - Along with our wired usb keyboard you will also receive a friendly support, and up to 2 years of warranty.

Browser and platform caveats

  • Chrome desktop: hardware media keys are supported, but results still depend on the operating system, active session, and site.
  • Firefox desktop: Mozilla documents hardware keyboard and headset control for audio and video on macOS 10.12.1 or later, Windows 8.1 or later, and GTK-based Linux distributions. Its documented behavior does not cover every Web Audio application.
  • ChromeOS: the top row can be configured as media keys or conventional function keys; Google documents switching this behavior with the device’s modifier key.
  • Edge and Safari: do not assume they are identical to Chrome or that a particular version guarantees hardware-key behavior. Browser, OS, and site differences still apply.
  • Mobile browsers: desktop behavior does not transfer directly. Mobile operating systems, lock screens, headsets, and app media sessions use different routing rules.

Why Play/Pause works but Next or Previous does not

This is normal. A browser may automatically connect Play/Pause to an HTML media element while leaving Next, Previous, chapters, queue navigation, ad skipping, and custom controls to the site. Failures are especially common with single-page apps, players built on Web Audio, autoplay-blocked media, or pages that never integrate the Media Session API.

Having an on-page player—or even having navigator.mediaSession available—does not prove that a site has registered useful handlers.

Rank #2
Sale
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
  • Media-Friendly: The K400 Plus wireless touch TV keyboard gives you integrated, comfortable control of your PC-to-TV entertainment, eliminating the clutter of a separate keyboard and mouse
  • Plug-and-Play: Simply plug the Unifying receiver into a USB port and the wireless touchpad keyboard is ready to go; adjust controls using the Logitech Options Software to save preferred settings
  • Power-Packed: Built with laid-back control in mind, this wireless TV keyboard has a reliable and long battery life of up to 18 months (2), including an on/off button to help it go even longer
  • Wireless Freedom: Designed for seamless comfort and control, this HTPC keyboard boasts a range of up to 33 ft (1) wireless connectivity, with quiet keys and a large touchpad for easy navigation
  • Broad Compatibility: Designed for use with Windows 7, Windows 8, Windows 10 and later, Android 7 or later, and Chrome OS

Why the wrong tab or application responds

Media keys are global controls, not automatically “this tab” controls. A browser and operating system choose among registered or currently playing sessions. A paused YouTube tab, another music tab, a second browser, or a native player such as VLC can compete for control. Chrome’s Media Control interface lists media from tabs and can take you back to the source tab. Pausing or closing competing sources usually makes the intended session win, but priority rules vary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Background control is expected: Chrome’s desktop implementation and Mozilla’s documentation describe controlling playback without returning focus to the page. It still does not guarantee that every key, tab, or application will receive the command you intended.

Rank #3
Sale
Logitech G213 Prodigy Wired RGB Gaming Keyboard - Black
  • Personalize 5 customizable lighting zones with over 16.8M colors to match your setup or game and synchronize backlit lighting effects with other Logitech G devices using Logitech G Hub
  • G213 Prodigy is a full-sized keyboard designed for gaming and productivity, with a slim body built for gamers of all levels and durable construction to repel liquids, crumbs, and dirt for easy cleanup
  • Each key is tuned to enhance the tactile experience, delivering ultra-quick, responsive feedback while the anti-ghosting gaming matrix is tuned for optimal gaming performance, keeping you in control
  • G213 gaming keyboard features dedicated media controls that can play, pause, and mute music and videos instantly; easily adjust the volume or skip to the next song with the touch of a button
  • Customize lighting, game mode, and macro programming with Logitech G HUB software and stay comfortable during long gaming sessions thanks to an integrated palm rest and adjustable keyboard feet

A reliable troubleshooting sequence

  1. Test outside the browser. Try the keys in a native music or video app. If they fail everywhere, inspect the keyboard, headset, OS, or vendor software first.
  2. Check the Fn layer. Try the key with and without Fn. Verify whether the laptop’s top row is in media-key mode.
  3. Use simple media. Play a normal <audio controls> or <video controls> page. Play/Pause is the useful baseline; Next/Previous may correctly do nothing.
  4. Start playback and remove conflicts. Pause media in other tabs and native applications. In Chrome, open the media-control interface and select the source you want.
  5. Test the site’s implementation. Check whether the service supports only Play/Pause, also supports seeking, or advertises full track navigation. A custom player may not be wired to media sessions.
  6. Try a clean environment. Use a private window or a fresh browser profile, disable media-related extensions, and update the browser and operating system.
  7. Avoid stale flags. Some older Chrome-derived builds exposed a Hardware Media Key Handling flag, but experimental flags change or disappear. Treat such advice as version-specific, not a universal fix.

Optional developer diagnostic

On a disposable test page, this checks whether the browser exposes the API:

"mediaSession" in navigator

To probe action support, developers can temporarily register handlers:

Rank #4
Sale
Logitech MK200 Full Size Wired Keyboard and Mouse Combo with Media Keys
  • The things you do most are right at your fingertips with one-touch controls for instant access to play/pause, volume, mute and the Internet.
  • Comfortable low-profile keys: Enjoy fast, fluid quiet typing on a familiar standard layout, including number pad.
  • High-definition optical mouse: Smooth, responsive cursor control from a comfortable sculpted mouse.
  • Sleek and durable design: Thin profile, spill-resistant design, durable keys and sturdy adjustable tilt legs. Tested under limited conditions (maximum of 60 ml liquid spillage). Do not immerse keyboard in liquid.
  • Plug-and-play PC compatibility: Simple USB connection. Works with Windows XP, Windows Vista, Windows 7, Windows 8 or later or Linux kernel 2.6 or later.
for (const action of ["play", "pause", "nexttrack", "previoustrack", "seekbackward", "seekforward", "stop"]) {
  try {
    navigator.mediaSession.setActionHandler(action, () => console.log(action));
  } catch (error) {
    console.log("Unavailable:", action, error);
  }
}

This can override a page’s own handlers, so it is a diagnostic experiment—not production code. API exposure alone does not prove that hardware routing, site integration, or every action works.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What media keys do not promise

  • They do not switch browser tabs or control every native application simultaneously.
  • They cannot make a site skip ads or change playlists that have no corresponding player action.
  • They do not guarantee control of Web Audio applications that lack Media Session integration.
  • They may be intercepted by keyboard firmware, operating-system shortcuts, vendor remappers, extensions, or another active media session.

The Bottom Line

Bottom line: Media keys are a broadly supported browser feature, not a universal contract. Play/Pause usually works with ordinary web audio and video; Next, Previous, seeking, and cross-app behavior depend on the site, browser, operating system, and active media session.

Best Value
Redragon BK7366 Wired Keyboard,Multimedia USB Quiet Computer Keyboard,Silent Keyboard with Large Number Pad,Spill-Resistant,Anti-Wear Letters,Full Size for Laptop,Desktop
  • 【𝐔𝐒𝐁 𝐖𝐢𝐫𝐞𝐝 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐨𝐧】This USB wired keyboard is very simple to use and works instantly with any USB device, no drivers required, no interference with the connection, no charging or power consumption.
  • 【𝐌𝐮𝐥𝐭𝐢-𝐟𝐮𝐧𝐜𝐭𝐢𝐨𝐧 𝐂𝐨𝐦𝐩𝐮𝐭𝐞𝐫 𝐊𝐞𝐲𝐛𝐨𝐚𝐫𝐝】This multimedia USB PC keyboard comes with a numeric keypad, 10 independent shortcut keys, and 12 multimedia combination keys (including video, volume, Internet, email, etc.), which can enhance your workflow and simplify the way you use your computer.
  • 【𝐒𝐩𝐥𝐚𝐬𝐡𝐩𝐫𝐨𝐨𝐟】Our USB waterproof keyboard uses a well-designed sealed membrane circuit to prevent accidental splashing. The waterproof effect is good, no need to worry about coffee or tea spilling on the keyboard.
  • 【𝐀𝐝𝐣𝐮𝐬𝐭𝐚𝐛𝐥𝐞 𝐅𝐞𝐞𝐭】This office keyboard is equipped with flip-up feet that can be adjusted at an angle to support your hands in a more ergonomic way, relieve fatigue, and ensure a comfortable typing experience. Smoother operation, better finger pressure, faster typing
  • 【𝐒𝐭𝐫𝐨𝐧𝐠 𝐜𝐨𝐦𝐩𝐚𝐭𝐢𝐛𝐢𝐥𝐢𝐭𝐲】Plug and play USB computer keyboard, no driver or software required. Perfect for Windows 11/10/8/7/XP, Mac OS and Windows VISTA.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.