modified-hildon-desktop has an option not to launch phone or contacts program upon a key press on the desktop. It also includes the necessary framework for launching whatever program you want upon any key press. The main problem with what you describe is actually in feeding the first key (and maybe subsequent keys that are pressed until the program actually launches) to your selected program, since it probably does not support such key injection.