I use Apple’s built-in Screen Sharing app all the time to connect from my Macbook Air to my Mac Mini. It’s a great way to just quickly log in from the Air and restart a Minecraft server, for example, or get a screenshot of the latest OS X Mavericks beta feature.
I also use Command-Tab a lot on my Macbook Air to switch between running apps. However, I was never able to Command-Tab my way out of Screen Share, as the keyboard combination gets sent to the remote Mac Mini, keeping me fully in Screen Share Mode.
I use Alfred, but this tip can be used with the older app launcher, Quicksilver, as well.
When using Screen Sharing, simply toggle Alfred or Quicksilver with the keyboard shortcut you set up in the respective app’s preferences (the default is usually Control-Space or Command-Space). Once the app launcher like Alfred has been activated, the local Mac will start behaving like it should, letting you Command-Tab your way out of Screen Sharing.
Now you can keep your hands on the keyboard even while multitasking your way out of a Screen Sharing session, with Alfred or Quicksilver on your side.
Via: Macworld Hints.