@clyde Now I understood. Yes if you launch the joy2key command you can use up and down to switch through bash history. But the way you made it is a bit confusing as the joy2key programm is always active in background. This can cause behaviour you do not want to happen. I would suggest to use dialog function for this.