# Enable Extra Keys in Termux — Any Key Shortcut Setup

> Many users, including YouTubers, install the hacker’s keyboard to gain access to extra keys when using termux.

Canonical: https://codelivly.com/how-to-enable-extra-keys-in-termux-enable-any-key-termux
Last updated: 2026-02-04

| | |
|---|---|
| Category | [Termux](https://codelivly.com/blog/category/termux) |
| Author | rocky |
| Published | 2022-10-02 |
| Reading time | 2 min |

Many users, including YouTubers, install the hacker’s keyboard to gain access to extra keys when using termux. It’s a waste of space in my opinion, and switching from my Google keyboard to a new difficult keypad simply to use termux is too much effort for me.

If you want to use more keys in termux, you can use several commands from the official [termux](https://codelivly.com/termux-tutorial-with-complete-termux-commands/) website, but generating a properties file with the termux code is a bit of a pain. I’ve just consolidated many commands so that you can now enable those keys with only one command.

## How to Enable All Arrow Keys in Termux:

You can access all of the arrow keys in the termux touch by using the command below. Simply **copy and paste** the following command into termux and the keys will show on your keyboard.

> mkdir $HOME/.termux/;echo “extra-keys = [[‘ESC’,’/’,’-‘,’HOME’,’UP’,’END’],[‘TAB’,’CTRL’,’ALT’,’LEFT’,’DOWN’,’RIGHT’]]” >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout

 [!\[How to Enable Extra Keys in Termux | Enable any key Termux\](https://2.bp.blogspot.com/-L7_K9SsUkv4/Xiv9hVfb0_I/AAAAAAAAJOQ/JxiXEKRszqkoz5opF52xsqlBV6ElinA7gCK4BGAYYCw/s320/How%2Bto%2BEnable-Extra-Keys-in-Termux.jpg)](https://2.bp.blogspot.com/-L7_K9SsUkv4/Xiv9hVfb0_I/AAAAAAAAJOQ/JxiXEKRszqkoz5opF52xsqlBV6ElinA7gCK4BGAYYCw/s1600/How%2Bto%2BEnable-Extra-Keys-in-Termux.jpg)

## How to Enable PAGE UP AND PAGE DOWN + Arrow Keys in Termux:

The code is exactly the as above but i have added PGUP and PGDN to add the page up and Down keys

> mkdir $HOME/.termux/;echo “extra-keys = [[‘ESC’,’/’,’-‘,’HOME’,’UP’,’END’,’PGUP’],[‘TAB’,’CTRL’,’ALT’,’LEFT’,’DOWN’,’RIGHT’,’PGDN’]]” >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 &&logout

 [!\[How to Enable Extra Keys in Termux | Enable any key Termux\](https://1.bp.blogspot.com/-lWt35LegoZQ/Xiv_J6mI0kI/AAAAAAAAJOg/c4z69bWjvKMyIuZhqip7ItX5nM_h3DDXQCK4BGAYYCw/s320/add-extra-keys-in-termux-android.gif)](https://1.bp.blogspot.com/-lWt35LegoZQ/Xiv_J6mI0kI/AAAAAAAAJOg/c4z69bWjvKMyIuZhqip7ItX5nM_h3DDXQCK4BGAYYCw/s1600/add-extra-keys-in-termux-android.gif)

## How to Enable Function Keys in Termux:

By adding an extra row to the touch keyboard, this operation will only allow function keys. Copy and paste the command below.

> mkdir $HOME/.termux/;echo “extra-keys = [[‘F1′,’F2′,’F3′,’F4′,’F5′,’F6′,’F12’],[‘ESC’,’TAB’,’CTRL’,’ALT’,’-‘,’DOWN’,’UP’]]” >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout

You can change the F1 with F7 or any function key in the command to enable that key in termux.

 [!\[How to Enable Extra Keys in Termux | Enable any key Termux\](https://4.bp.blogspot.com/-j7Loou8y_BM/XiwFebn06lI/AAAAAAAAJOs/nNo13eRdze06GliJdT0jeKpPVc4zX1MxACK4BGAYYCw/s320/Enable-function-keys-in-termux.gif)](https://4.bp.blogspot.com/-j7Loou8y_BM/XiwFebn06lI/AAAAAAAAJOs/nNo13eRdze06GliJdT0jeKpPVc4zX1MxACK4BGAYYCw/s1600/Enable-function-keys-in-termux.gif)

## How to Enable All Keys in Termux:

I don’t think using this open is a good idea unless you’re doing anything that requires all of these keys to be present at the same time. Copy and paste this command, then hit Enter.

> mkdir $HOME/.termux/;echo “extra-keys = [[‘F1′,’F2′,’F3′,’F4′,’F5′,’F6′,’F7’],[‘ESC’,’/’,’-‘,’HOME’,’UP’,’END’,’PGUP’],[‘TAB’,’CTRL’,’ALT’,’LEFT’,’DOWN’,’RIGHT’,’PGDN’]]” >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout

 [!\[How to Enable Extra Keys in Termux | Enable any key Termux\](https://1.bp.blogspot.com/-X3VNg7qRlNE/XiwHeMpaInI/AAAAAAAAJO4/JyxthHw0RsEcI66H6neULRHdYfTSj8_nQCK4BGAYYCw/s320/add-all-keys-in-termux.gif)](https://1.bp.blogspot.com/-X3VNg7qRlNE/XiwHeMpaInI/AAAAAAAAJO4/JyxthHw0RsEcI66H6neULRHdYfTSj8_nQCK4BGAYYCw/s1600/add-all-keys-in-termux.gif)

That’s All, your extra key has enabled. If you enjoyed the post do share and don’t forget to follow us on [telegram](http://t.me/telegram) for more updates.

**“Have a good day![????](https://s.w.org/images/core/emoji/14.0.0/72x72/1f60a.png) ”**
