Is it possible to create custom gestures that will work across all programs in the OS? For example, would it be possible to draw an 'F' on the screen to activate the 'Alt-F' keyboard shortcut?

 

Also, what would have to be done to enable the pinch-zoom gesture for a globe environment such as Google Earth?