#include <iostream>
#include <conio.h>
using namespace std;

int main() {
	
	char key = ' ';
	while (key != 'q'){
		cout << "Enter a key: ";
		key = _getch();
		cout << "You entered: " << key << endl;
	}
	
	return 0;
}