I have periodically had this issue using wine to run Windows software, where the software does not respond to the keyboard.

Solution: run winecfg, and under Graphics>, uncheck the box "Allow the window manager to control the windows"