using fremantle, when i started to run liqbase, i discovered that pressing any key in my app would mysteriously open up one of the search apps.
this code is at the end of the open window function, it simply forces focus back to the app itself.
since you did not explain the problem and javispedro hasnt actually reproduced the error i think its at least something to consider and see.