Toggle between two actions v3.5

How to make it switch with a tap on a web page:

  1. If the cursor is at the top, then tap moves you to the bottom of the web page (⌘ + key-down)
  2. If the cursor is at the bottom, then tap moves you to the top of the web page (⌘ + key up)

The problem is that I don't understand how to set the value for the Trigger on key-down / key up function. It looks like her problem

My settings