Use unclutter with the grab option to avoid focus being locked.