Added GetChr(), a keypress input function.