Now properly reads keys from console