This looks correct, but unfortunately it’s possible to light the keychain when still in a position that’s difficult to get a good read with on an x-series.
To help better position things, I suggest using the delay command.
That lets you issue the command by hitting enter on the keyboard, then spend a few seconds positioning the reader before the command executes. I really think it’s probably just a placement issue.