implemented y/n keypress instead of `yes' or `no'