Added -a flag for entering key on command line