Map Keystroke to MIDI or another Key and suppress the original keystroke

Often, it is useful to use Bome MIDI Translator Pro for mapping keystrokes on your computer / QWERTY keyboard to send MIDI messages, map to other keys, type text, or do other special actions. MIDI Translator Pro allows for dynamic mappings, too, depending on context or active application, you can use different keystroke mappings.

However, keys on a keyboard have a predefined function. Examples:

  • the A key will enter the A letter
  • the F12 key is used in many programs for special actions
  • the Number Pad keys enter numbers, and so on.

Wouldn’t it be great to be able to use specific keys in Bome MIDI Translator Pro for translations, but disable their normal function?

This is possible using this approach:

  1. Redefine specific keys with an unused VK code.
    This will disable their original function.
  2. In MIDI Translator Pro, map this key to MIDI, another keystroke, or anything else you like.

Fortunately, Bome MIDI Translator Pro recognizes keys even if their normal function is disabled.

1. Redefine Keys

For this example, I’ve used Microsoft Power Toys:
Download Microsoft Power Toys

After installation, the settings allow you to enable the Keyboard Manager:

Click on Remap a key.

In this example, I redefine the 0 key on the Number Pad (by clicking Type and then pressing the key), then map it to an unused VK code 140 using the drop-down list (generally, VK codes above 128 are unused):

Press OK, then press Continue Anyway when a warning tells you that the key does not have assignments. This is exactly what we want!

Now try in a text editor or elsewhere: pressing the Num0 key will not enter a 0, but just do nothing.

2. Map the key in Bome MIDI Translator Pro

Open Bome MIDI Translator Pro, and create a new Translator entry. As Incoming action, select Key Stroke. Select Physical Keys and click into the empty field. Press the Num0 key: it will be detected as Num 0([VK 140]):

Now as outgoing action, you can define anything you like, for example send a MIDI message, issue a keyboard shortcut, launch a program or switch to a specific window, and so on.
As an example, we send a Control Change message:

Now, whenever you press the Num0 key, other applications ignore it, but the MIDI message is sent to the MIDI device you defined in Bome MIDI Translator Pro.

And of course, you can use different presets, Shift, Ctrl and other modifiers as you like to make even more use of this redefined key.

Note 1: it seems that Num ENTER cannot be mapped in this way: it is seen as a normal ENTER key, so you’d map both at once.
Note 2: there are other ways to remap keys to an undefined function. With other tools (like SharpKeys), you can modify the registry to map the scan code of keys, which is a more low level way, but Bome MIDI Translator Pro also recognizes undefined scan codes.

MacOS?

We haven’t tried this on MacOS, but in general, Bome MIDI Translator Pro also recognizes keys on MacOS if they’re mapped to undefined functions.