How about just having different virtual button codes to being the "fidentry" mode? One for REPLACE, one for ENQUEUE, one for APPEND, and yet another different on for INSERT?

Or maybe this method: if the first digit of the "fid" that you enter is a "0", then the next digit selects the mode, and the real fid then follows ?

Cheers