You could use something like YubiKey and regularly check for its presence.
Of you your device supports keyboards via USB OTG, though none of my current devices (an Android phone, a Windows phone, and a Windows-proper tablet) seem to recognise a yubikey plugged in this way (at least the tablet and android phone recognise normal keyboards, the Windows phone I've not tried)