How To Detect Keyboard Input In Python From User Point