結果 : python detect when a key is pressed