# Key combinations

**URL:** https://forums.pimoroni.com/t/key-combinations/9408
**Category:** Support
**Created:** [December 21, 2018, 4:18pm UTC](https://forums.pimoroni.com/t/key-combinations/9408 "2018-12-21T16:18:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![robpl](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@robpl](https://forums.pimoroni.com/u/robpl)
#### Post date: [December 21, 2018, 4:18pm UTC](https://forums.pimoroni.com/t/key-combinations/9408/1 "2018-12-21T16:18:56Z")

</div>

Keybow received today, I want to use it with my Mac where I’m running Logic Pro X. Having to do multiple key presses sort of defeats the object since what I want is a number of keys set up to do regularly used strokes. So can anyone enlighten me as to how to get a Keybow press to emulate the cmd(option), ctrl and alt keys, singularly and in combination together and with an alpha-numeric ?

MTIA

---

<div class="post-metadata">

### Author: ![sandyjmacdonald](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/sandyjmacdonald/32/393_2.png) [@sandyjmacdonald](https://forums.pimoroni.com/u/sandyjmacdonald)
#### Post date: [December 21, 2018, 8:59pm UTC](https://forums.pimoroni.com/t/key-combinations/9408/2 "2018-12-21T20:59:55Z")

</div>

You certainly can do that!

There’s quite a bit of detail on it in this tutorial, [https://learn.pimoroni.com/tutorial/sandyj/using-macros-and-snippets-with-keybow](https://learn.pimoroni.com/tutorial/sandyj/using-macros-and-snippets-with-keybow), but here’s an example too.

```auto
function handle_key_00(pressed)
    if pressed then
        keybow.set_modifier(keybow.LEFT_META, keybow.KEY_DOWN)
        keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_DOWN)
        keybow.set_modifier(keybow.LEFT_ALT, keybow.KEY_DOWN)
        keybow.tap_key("t", pressed)
        keybow.set_modifier(keybow.LEFT_META, keybow.KEY_UP)
        keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_UP)
        keybow.set_modifier(keybow.LEFT_ALT, keybow.KEY_UP)
    end
end

```

So that’s made up example of holding down command, control, and alt and then tapping t, and finally releasing command, control, and alt again. Hopefully that makes sense?

---

<div class="post-metadata">

### Author: ![robpl](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@robpl](https://forums.pimoroni.com/u/robpl)
#### Post date: [December 24, 2018, 10:29am UTC](https://forums.pimoroni.com/t/key-combinations/9408/3 "2018-12-24T10:29:11Z")

</div>

Thanks Sandy, that’s a great help :-)

R
