結果 : python if a key is pressed