Hello. Lets say we have this code Code: char string ; printf("please write something here:\n"); gets(string); printf("You typed:%s\n",string); If user presses some letters those will be printed out latter. But how can we make this program understand that user pressed the Page Up button that its Virtual key code is "KEY_PPAGE" according to MSDN ? Is there any way to do it ? Thanks in advance.