Is it possible to case arrow keys in a bash script to run a certain set of commands if the up/left arrow keys are pressed, and a certain set if the down/right arrow keys are
# This will bind the arrow keys while true do read -r -sn1 t case $t in A) echo up ;; B) echo down ;; C) echo right ;; D) echo left ;; esac done