# Magic Keyboard / Function Keys based on application

**URL:** <https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019>\
**Category:** Configuration Help & General Discussion\
**Created:** [November 20, 2019, 6:28pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019 "2019-11-20T18:28:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jm1](https://community.folivora.ai/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jm1](https://community.folivora.ai/u/jm1)\
**Post date:** [November 20, 2019, 6:28pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/1 "2019-11-20T18:28:40Z")

</div>

Hi,

I'd like to use my Magic Keyboard F1-F12 keys as F1-F12 when I'm inside an application, but all other times let them use their shortcuts (volume, mission control, &c). I don't see a way to do this in the OS, so I was mapping each 'special feature' action to the corresponding function key.

Two questions: 1) Is there a better way to do this? 2) I got stuck on F12, which is volume up. When I press the key in BTT, it doesn't seem to 'capture' that I pressed a key, and so I can't figure out how to map it to F12. Suggestions? Thank you.

---

<div class="post-metadata">

**Author:** ![Tim\_Law](https://community.folivora.ai/user_avatar/community.folivora.ai/tim_law/32/26388_2.png) [@Tim\_Law](https://community.folivora.ai/u/Tim_Law)\
**Post date:** [August 20, 2020, 5:27pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/2 "2020-08-20T17:27:35Z")

</div>

I have this same question. I am using Magic Keyboard and would like the F1-F12 keys to be active for VS Code but not for other apps.

---

<div class="post-metadata">

**Author:** ![Ecneics36](https://community.folivora.ai/user_avatar/community.folivora.ai/ecneics36/32/19715_2.png) [@Ecneics36](https://community.folivora.ai/u/Ecneics36)\
**Post date:** [October 4, 2021, 4:01pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/3 "2021-10-04T16:01:11Z")

</div>

Agreed: I just want to select a few of the function keys (F8 and F9) to be part of my touch bar when I'm in Chrome for development debug purposes, and then have them all active while in my IDE. Is there a reason that we can't select from F1 - F12 keys in BetterTouchTool?

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [October 4, 2021, 4:06pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/4 "2021-10-04T16:06:01Z")

</div>

you can just use the send keyboard shortcut function for that (record the f keys using your keyboard/ touch bar)

---

<div class="post-metadata">

**Author:** ![Yury\_Ershov](https://community.folivora.ai/user_avatar/community.folivora.ai/yury_ershov/32/17703_2.png) [@Yury\_Ershov](https://community.folivora.ai/u/Yury_Ershov)\
**Post date:** [October 7, 2021, 11:36pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/5 "2021-10-07T23:36:02Z")

</div>

`$ brew install fluor`

---

<div class="post-metadata">

**Author:** ![JRoseland](https://community.folivora.ai/user_avatar/community.folivora.ai/jroseland/32/35238_2.png) [@JRoseland](https://community.folivora.ai/u/JRoseland)\
**Post date:** [November 23, 2024, 5:45pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/6 "2024-11-23T17:45:47Z")

</div>

Any update to this? I'm trying to figure it out myself here, [Newbie question: How do I set my touchbar to simply default to function keys for a game?](https://community.folivora.ai/t/newbie-question-how-do-i-set-my-touchbar-to-simply-default-to-function-keys-for-a-game/38646)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [November 23, 2024, 5:49pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/7 "2024-11-23T17:49:18Z")

</div>

Yes, BTT nowadays has a a predefined action to quickly change the function key mode.

However you seem to want it on your Touch Bar:

> [@Magic Keyboard / Function Keys based on application](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/4):
>
> you can just use the send keyboard shortcut function for that (record the f keys using your keyboard/ touch bar)

---

<div class="post-metadata">

**Author:** ![JRoseland](https://community.folivora.ai/user_avatar/community.folivora.ai/jroseland/32/35238_2.png) [@JRoseland](https://community.folivora.ai/u/JRoseland)\
**Post date:** [November 23, 2024, 6:06pm UTC](https://community.folivora.ai/t/magic-keyboard-function-keys-based-on-application/12019/8 "2024-11-23T18:06:04Z")

</div>

Hmm... I just want the FN keys to show up for specific applications. When I'm gaming, for example, I don't need my weather widget or mission control button there in the upper left. **I just want the FN keys to show up by default**.

Essentially I want this native setting - just for specific applications

 ![FN keys Macbook](https://community.folivora.ai/uploads/default/original/3X/a/2/a2235f4e778c547b83c3bc23d1b8403a74cc0c6d.png)

There must be a way to do that...
