If the window manager has a passive grab on Alt-Tab, then this will break. Otherwise, you're breaking the window manager if you do this on a keyboard grab.

Reconsider the need to do a full-screen keyboard grab and consider instead minimizing the window on focus loss if that's the desired behavior.