How to access and modify previous commands (bash history) in Termux
See the Termux help page for how to input arrow keys using the VolumeUp button, VolumeDown for Ctrl and some additional shortcuts!
Volume Up+W → Up arrow key