If you're on Windows, you can do something like this with AutoHotkey:
; Make alt-q in Firefox type ctrl-l followed by "% "
#IfWinActive ,ahk_class MozillaWindowClass
!q::Send, ^l`%{Space}
#IfWinActive