Used undefined variable NO_WIDGET to clear keyboard focus. Same error was made in mouse.lua.
Basically half a rewrite.