Usually there is something under the key causing the problem.Happy Independence Day, everyone!
(try typing that when your "D" key is not working right, lol. It is really weird that the key isn't working, anyone else having weird computer issues lately?
Many keys will pop off so that you can clean under them.