結果 : check if key is pressed python