結果 : python detect if a key is pressed