Skip to main content

Media Keys

Media keys extension adds keys for common media control keys. It can simply be added to the extensions list.

from kmk.extensions.media_keys import MediaKeys
keyboard.extensions.append(MediaKeys())

Keycodes

KeyAliasesDescription
KC.AUDIO_MUTEKC.MUTEMute
KC.AUDIO_VOL_UPKC.VOLUVolume Up
KC.AUDIO_VOL_DOWNKC.VOLDVolume Down
KC.MEDIA_NEXT_TRACKKC.MNXTNext Track (Windows)
KC.MEDIA_PREV_TRACKKC.MPRVPrevious Track (Windows)
KC.MEDIA_STOPKC.MSTPStop Track (Windows)
KC.MEDIA_PLAY_PAUSEKC.MPLYPlay/Pause Track
KC.MEDIA_EJECTKC.EJCTEject (macOS)
KC.MEDIA_FAST_FORWARDKC.MFFDNext Track (macOS)
KC.MEDIA_REWINDKC.MRWDPrevious Track (macOS)