4x3 Matrix Keypad and USBKeyboard emulation

I try with sketch separately and they working fine without problem.
for the wiring is the default of library for both (USB and KeyBoard).
but is that instruction that cause the problem: char key=kpd.get_key();

the problem is, if i connect the usb port out of arduino for emulate the keyboard without that instruction, it works, but if i connect the arduino with that instruction (char key=kpd.get_key():wink: the usc isn't recognized from my pc.