Well since you seem to only have problems with specific things such as the 'W' key I'd say it's a hardware problem and your best bet is to try and return it for another and see if the problem presists.
edit: about the mouse, i'm not so sure about that.