inkey_active works for me.
But in your case i think it's better not to do anything if the inkey is already active