Keys wear and bend. A key carried on a heavy ring, used to pry things open or sat on in a pocket can bend just enough that it no longer slides into the keyway. Compare it with another key for the same lock, if you have one. Look along its length for a curve or a twisted blade.
A key cut from a worn copy, or cut on the wrong blank, may have a profile that does not quite match the keyway. It might have worked when the lock was loose and now catches. If a spare key goes in smoothly, the original is the problem, and a new key cut from a good original or by code is the fix.
Make sure it is the right key. Similar-looking keys for different locks are easy to mix up, especially after a lock change.