I have found that it doesn't happen randomly, it seems that when you use any key sequence that has uses <Alt> key, It will start to fail. To get back, you have to press the menu key, press one up/down arrow key and <Esc>. That is the method I follow atm to avoid having to close and open the document.