Sometimes (usually after having been working in Logic for an extended period of time) the musical typing keyboard stops working and instead of playing sounds, the keys trigger the functions that they do when the musical typing keyboard is not open (the sounds play if I press the on-screen keyboard with the mouse, the problem occurs when pressing the keys on my physical keyboard). If I restart Logic the problem goes away.
Anyone encountered this problem and know how to fix it without restarting Logic? I'm using Logic Pro X on OS X Yosemite 10.10.4.
I do have a software instrument track selected etc.