Add grab_keyboard_sync wrapper