If the media keys don't work for you with this code, it must be the keyboards fault. It works with my MS keyboard. I have experienced a Logitech keyboard some years ago that didn't work for such special keys in Windows unless there was some special driver software installed, I guess they have assigned their key codes and translate this with their own software so that the operating system get them, or do simple signal-to-process-start mapping with the software. I was more hoping to hear that this was a ghost of the past because of non-standarized special/media key codes in the early days of "extended keys", and that this was sorted out between the manufacturors long time ago, but it seems they haven't yet. You could try to find a general keyboard hook and detect what/if happens for these keys, but chances are they are not interpreted as keys by the operating system at all.