Most keyboards have a "transpose" setting that lets you shift all the keys like this. You may have accidentally set your keyboard's transpose setting to +3. This would make pressing a C send a D# instead. If this is the case, setting the transpose setting to 0 will resolve the issue.