1997 Ford Explorer ignition switch question

Our 1997 Ford Explorer has an ignition switch/key/multifunction switch problem that I need help diagnosing. Sometimes, we get the key is still in the ignition warning tone, that rythmic beep beep beep that warns you the key is still cylinder, after the key has been removed from the ignition. The tone goes away when the door is closed. I can occasionally get the chime to stop by repositioning the steering wheel by twisting it from side to side or pulling or pushing on the steering wheel. Is this a problem with the ignition switch or is it a problem with the multifunction switc? Or, is it something else? Thank you very much for any help or advice.