# Juce VST3 Plugin dosn't know KeyPress::numberPad1

**URL:** <https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193>\
**Category:** Audio Plugins\
**Created:** [October 12, 2020, 9:43pm UTC](https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193 "2020-10-12T21:43:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dschiller](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dschiller/32/9620_2.png) [@dschiller](https://forum.juce.com/u/dschiller)\
**Post date:** [October 12, 2020, 9:43pm UTC](https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193/1 "2020-10-12T21:43:44Z")

</div>

Hi all,

when I am testing my Audio Plugin as Standalone the Numpad Keys ( 1 to 6 ) are working as expected.

I implemented them as:

```auto
        if (key.getKeyCode() == KeyPress::numberPad1) mPadA.press(velocity);

        if (key.getKeyCode() == KeyPress::numberPad2) mPadB.press(velocity);

        if (key.getKeyCode() == KeyPress::numberPad3) mPadC.press(velocity);

        if (key.getKeyCode() == KeyPress::numberPad4) mPadD.press(velocity);

        if (key.getKeyCode() == KeyPress::numberPad5) mPadE.press(velocity);

        if (key.getKeyCode() == KeyPress::numberPad6) mPadF.press(velocity);

```

I also used:

```auto
        if (key.getKeyCode() == 65633) mPadA.press(velocity);

        if (key.getKeyCode() == 65634) mPadB.press(velocity);

        if (key.getKeyCode() == 65635) mPadC.press(velocity);

        if (key.getKeyCode() == 65636) mPadD.press(velocity);

        if (key.getKeyCode() == 65637) mPadE.press(velocity);

        if (key.getKeyCode() == 65638) mPadF.press(velocity);

```

Which worked also well in the Standalone Version. I used `DBG(key.getKeyCode());` to read the Keycodes. But in the VST3 Plugin in Bitwig for Example the Numpad Keys seems to use the same Keycodes as the Numbers above the Letters Block on the Keyboard. I have no idea why the Standalone and the VST3 behave differently.

Thanks a lot!

Cheers  
Dirk

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [October 13, 2020, 2:27pm UTC](https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193/2 "2020-10-13T14:27:27Z")

</div>

Which OS are you testing this on? I know that Windows passes the char down for `1` the same as `numpad 1` (I ran into something similar recently).

---

<div class="post-metadata">

**Author:** ![dschiller](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dschiller/32/9620_2.png) [@dschiller](https://forum.juce.com/u/dschiller)\
**Post date:** [October 13, 2020, 2:28pm UTC](https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193/3 "2020-10-13T14:28:28Z")

</div>

Hey Joël, yes exact it is Windows 10. Did you find a Solution ?

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [October 13, 2020, 3:05pm UTC](https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193/4 "2020-10-13T15:05:37Z")

</div>

No, unfortunately. I hadn’t had time to drill down into it to see where/how things could have gone wrong (or if it’s just how it has to be!). I’m pretty much just tinkering on occasional side projects when using JUCE these days, so won’t have much time to debug.

---

<div class="post-metadata">

**Author:** ![dschiller](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dschiller/32/9620_2.png) [@dschiller](https://forum.juce.com/u/dschiller)\
**Post date:** [October 13, 2020, 3:09pm UTC](https://forum.juce.com/t/juce-vst3-plugin-dosnt-know-keypress-numberpad1/42193/5 "2020-10-13T15:09:12Z")

</div>

Thanks Joël for the Answer.
