Toggle Expand Library doesn't work when mapped to keyboard. Also - search field shortcut?

I’ve tried mapping this command to a few keys. It doesn’t work, it just gives a system error chime. I can map it to a midi button, and the UI button works. But keyboard doesn’t. I’d really like to have all my library functions on the keyboard, so this is a real pain. Also, it’d be nice to be able to map “focus search field”. Currently, a few tab clicks will do it, but it’d be nice to have a single keypress for that.