midi keyboard just randomly stops working

so recently i purchased cubase elements 8, alongside with a midi controller ( m-audio, oxygen 49). so the problem im having is that the midi controller just stops working sometimes. for example, ill be working on a beat, im getting a response from the midi, sound is coming through fine, than randomly it just stops working. ill press a key and then there willl be no response. the red bar dosen’t show any input. im pretty sure it cant be the midi controllers fault because i bought it brand new and its only a week old. is anyone having the same problem or have a solution? thank you.