Unhide dock when key pressed
You can assign that fn to show/hide dock in Keyboard shortcuts, but you will override the original fn key.

Or you can create a Service in Automator that act upon a keystroke

use this action pack to act upon key and do what you want building up your workflow.