How to Enable Extra Keys in Termux | Enable any key Termux

While using termux when we have to use keys like control alt or up or down arrow we use Touch keyboard which comes in by default with termux app. But in that touch keyboard, we don't get arrow right and arrow left as well as other keys which we can see on a normal keyboard.


To access extra keys while using termux, a lot of uses, as well as YouTubers, install the hacker's keyboard. In my opinion, it is just a waste of storage and changing my Google keyboard with a new complicated keyboard just to use termux is too much effort for me.

If you want to use extra keys in termux you can use some commands provided by the official termux website but creating a properties file with the code provided by the termux is a little bit work. I have just combined multiple commands so now you can enable those keys just by pasting a single command.


How to Enable All Arrow Keys in Termux:

By using the below command you will be able to access all the arrow keys in the termux touch. 
Just copy and paste below command and open termux again and keys will appear 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




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




How to Enable Function Keys in Termux:

This command will only enable function keys by adding an extra row in the touch keyboard.
Copy and paste the below command.

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




How to Enable All Keys in Termux:

I don't think using this open is a great idea unless and until you are doing something which requires all of these keys together.
Copy and paste this command press Enter and done.

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




Conclusion:

Enabling Keys in termux takes 4-5 commands but I don't want to waste your time by separating the commands so that's why i have Created one command to do the job.if you are unable to find the key you are searching for you can check out termux-wiki for the name of your key and then you can edit the name of the key in any command to Enable your desired key.

Post a Comment

18 Comments

  1. There is an error it says file already exist

    ReplyDelete
    Replies
    1. And it is doing anything beside just throwing error?

      Delete
    2. Mine also given the same error but I do not know what to do to solve....

      Delete
  2. Thanks a TON Bro....
    Keep Going.

    ReplyDelete
  3. Thanks a lot for this trick,
    I have love to use those keys

    ReplyDelete
  4. Enter your comment...mine isn't working at all

    ReplyDelete
  5. In which format you post your code
    on your Blog

    ReplyDelete
  6. you are amazing, top content, keep going

    ReplyDelete

If you Wanna Learn about Termux and connect with more people like you then you can join our Discord Server Termux Discord Server