There is no onboard programming procedure for Mercury Grand Marquis 1998. This vehicle requires special equipment be connected to the vehicle to program the keyless remote. Please contact your dealer or local automotive locksmith.