fixed issue with double keys in terminal