Keyboard library failing after reset

I'm pretty sure the problem is with the statement at line 53 in your code. I'd be a little more confident, however, if I could see your code.