結果 : check if key pressed python