Sentence:  "Now, you've got just grounds for shooting me," he said gaily, and instantly regretted his <WSD>infelicitous</WSD> remark. 
Meaning of the word marked with <WSD> tags:  Inappropriate or awkward; not well said, expressed, or done.