@mitu great!, thank you so much (another time 😊) Mitu!
I searched the Internet before asking here, but did not find such an answer that really explains it.
@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.