simplify getkey.sh