# Keybow key combinations with more than one key

**URL:** <https://forums.pimoroni.com/t/keybow-key-combinations-with-more-than-one-key/13949>\
**Category:** Support\
**Created:** [May 18, 2020, 6:30pm UTC](https://forums.pimoroni.com/t/keybow-key-combinations-with-more-than-one-key/13949 "2020-05-18T18:30:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoopee3](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/phoopee3/32/6821_2.png) [@phoopee3](https://forums.pimoroni.com/u/phoopee3)\
**Post date:** [May 18, 2020, 6:30pm UTC](https://forums.pimoroni.com/t/keybow-key-combinations-with-more-than-one-key/13949/1 "2020-05-18T18:30:57Z")

</div>

I have a keybow, and I have it set up with some arrow keys, and then I was thinking of setting up another one of the keys as the meta key (I’m on a mac) so I could do meta+left/right to jump to the beginning or end of the line.

I can’t seem to get a key combination to happen with two key presses though.

To be clear, I don’t want to set ONE key to do meta+left. I want a meta key, and an arrow key as two separate keys, but the ability to press them at the same time.

I tried setting key 3 to do set key left\_meta and keybow.key\_down, but it doesn’t work in conjunction with another keypress on the keybow.

Is this a limitation of keybow, am I just missing something?

---

<div class="post-metadata">

**Author:** ![mlemos](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mlemos/32/7087_2.png) [@mlemos](https://forums.pimoroni.com/u/mlemos)\
**Post date:** [August 23, 2020, 6:18pm UTC](https://forums.pimoroni.com/t/keybow-key-combinations-with-more-than-one-key/13949/2 "2020-08-23T18:18:35Z")

</div>

Hi,

I’m with the same need.  
I want to have key-combinations on the Keybow to trigger different actions.  
For example: keys 00 and 01 pressed together throws COMMAND-SHIFT-A in my attached Mac.

Love to know if you had a solution for this or if there is such limitation on the Keybow.

Best,

Manoel

---

<div class="post-metadata">

**Author:** ![mlemos](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mlemos/32/7087_2.png) [@mlemos](https://forums.pimoroni.com/u/mlemos)\
**Post date:** [August 23, 2020, 6:28pm UTC](https://forums.pimoroni.com/t/keybow-key-combinations-with-more-than-one-key/13949/3 "2020-08-23T18:28:01Z")

</div>

Hi,

I tried a simplistic approach here and it worked just fine.

I associated my key 09 to work as a modifier and it works fine in conjunction with other keys on the Keybow.

The code is:

```
function handle_key_09(pressed)
    if pressed then
        keybow.set_modifier(keybow.LEFT_SHIFT, keybow.KEY_DOWN)
    else
        keybow.set_modifier(keybow.LEFT_SHIFT, keybow.KEY_UP)    
    end
end

```

In this case, the key 09 in the Keybow works as a LEFT SHIFT and when I use `keybow.set_key`on the other keys, the value sent is “shifted”. For example, `a` becomes `A`.

Best!

---

<div class="post-metadata">

**Author:** ![phoopee3](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/phoopee3/32/6821_2.png) [@phoopee3](https://forums.pimoroni.com/u/phoopee3)\
**Post date:** [August 24, 2020, 1:21am UTC](https://forums.pimoroni.com/t/keybow-key-combinations-with-more-than-one-key/13949/4 "2020-08-24T01:21:56Z")

</div>

Oh man, I am going to try this out tonight! I opted for creating layers, and hard coding the keys that i needed, but if your code works that will make it even more flexible.

If you’re interested in my layer code, it’s on github ([https://github.com/phoopee3/Keybow-Layers](https://github.com/phoopee3/Keybow-Layers))
