Factor out keycode grabbing for reuse
Factor out keycode grabbing for reuse

Leave grab_key stub in place for compatibility with existing code.
grab_keycode() can now be used by other functions (particularly
grab_modifier().

seanpringle/simpleswitcher,seanpringle/simpleswitcher